diff --git a/rust/color.sh b/rust/color.sh index 56ad109e..1dc30c41 100644 --- a/rust/color.sh +++ b/rust/color.sh @@ -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; }