From 2d748aebc93835a191fc207f0126cfc1b4e57e67 Mon Sep 17 00:00:00 2001 From: fbt Date: Mon, 8 Jan 2018 05:58:23 +0300 Subject: [PATCH] can only 'return' from a function or sourced script Signed-off-by: fbt --- ssm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssm b/ssm index cd44e9d..9010058 100755 --- a/ssm +++ b/ssm @@ -662,7 +662,7 @@ case "$2" in ;; esac -(( res )) && return "$res" +(( res )) && exit "$res" # Run post_$action function if is_function "post_$2"; then