From bc9730be5bd6d3e50d5c4d3102f388bf88b623d5 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Mon, 17 Apr 2017 15:35:20 +0300 Subject: [PATCH] girar-task-approve: fixed errorlevel returned A 'task approve' command would return non-zero errorlevel, surprisingly, due to changed exit semantics; restore those broken by commit g74440ef. Fixes: 74440ef665bf5f39c7cb69186d87f4c7ffc111f4 --- bin/girar-task-approve | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/girar-task-approve b/bin/girar-task-approve index 75cd47c..0924222 100755 --- a/bin/girar-task-approve +++ b/bin/girar-task-approve @@ -31,8 +31,9 @@ for i in $(gear_nums); do [ -d "acl/$i" ] && [ 'all' = "$num" -o "$i" = "$num" ] || continue touch "acl/$i/$GIRAR_USER" + rc=$? [ 'all' = "$num" ] || - exit + exit $rc done [ 'all' = "$num" ] || fatal "task #$id: subtask #$num not found" -- 2.10.2