|
|
|
@ -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 |
|
|
|
} |
|
|
|
} |