zsh comaptibility patch

pull/18/head
Simon Let 6 years ago
parent e12e366dda
commit 2697ee2f49
  1. 8
      scripts/reshctl.sh

@ -39,11 +39,11 @@ reshctl() {
# run resh-control aka the real reshctl # run resh-control aka the real reshctl
resh-control "$@" resh-control "$@"
# modify current shell session based on exit status # modify current shell session based on exit status
local status=$? local _status=$?
case "$status" in case "$_status" in
0|1) 0|1)
# success | fail # success | fail
return "$status" return "$_status"
;; ;;
# enable # enable
100) 100)
@ -64,7 +64,7 @@ reshctl() {
;; ;;
*) *)
echo "reshctl() FATAL ERROR: unknown status" >&2 echo "reshctl() FATAL ERROR: unknown status" >&2
return "$status" return "$_status"
;; ;;
esac esac
} }
Loading…
Cancel
Save