Skip to content

Commit

Permalink
Fix success helper function not exiting (#763)
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 authored Oct 21, 2024
1 parent bff562d commit 308f136
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 308f136

Please sign in to comment.