From 308f13658fea1115a1fc8168ce25498a9eb71227 Mon Sep 17 00:00:00 2001 From: Julien Cretin Date: Mon, 21 Oct 2024 12:26:46 +0200 Subject: [PATCH] Fix success helper function not exiting (#763) This is currently only used in tail position, so the bug is not visible. --- rust/color.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }