Skip to content

Commit

Permalink
Fix success helper function not exiting
Browse files Browse the repository at this point in the history
This is currently only used in tail position, so the bug is not visible.
  • Loading branch information
ia0 committed Oct 21, 2024
1 parent bff562d commit bcdc35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/color.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ x() { ( set -x; "$@"; ); }
color() { echo "[$1m$2: $3"; }
info() { color '1;36' Info "$*"; }
todo() { color '1;33' Todo "$*"; }
success() { color '1;32' Done "$*"; }
success() { color '1;32' Done "$*"; exit 0; }
error() { color '1;31' Error "$*"; exit 1; }

0 comments on commit bcdc35d

Please sign in to comment.