can only 'return' from a function or sourced script

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2018-01-08 05:58:23 +03:00
parent e733ed4f6a
commit 2d748aebc9
1 changed files with 1 additions and 1 deletions

2
ssm
View File

@ -662,7 +662,7 @@ case "$2" in
;;
esac
(( res )) && return "$res"
(( res )) && exit "$res"
# Run post_$action function
if is_function "post_$2"; then