From 2697ee2f4967621386081e76a2a57152182730dc Mon Sep 17 00:00:00 2001 From: Simon Let Date: Sun, 6 Oct 2019 19:21:28 +0200 Subject: [PATCH] zsh comaptibility patch --- scripts/reshctl.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/reshctl.sh b/scripts/reshctl.sh index 5702153..1f59217 100644 --- a/scripts/reshctl.sh +++ b/scripts/reshctl.sh @@ -39,11 +39,11 @@ reshctl() { # run resh-control aka the real reshctl resh-control "$@" # modify current shell session based on exit status - local status=$? - case "$status" in + local _status=$? + case "$_status" in 0|1) # success | fail - return "$status" + return "$_status" ;; # enable 100) @@ -64,7 +64,7 @@ reshctl() { ;; *) echo "reshctl() FATAL ERROR: unknown status" >&2 - return "$status" + return "$_status" ;; esac } \ No newline at end of file