From 310be7ab4778195b550225530981582578e1adca Mon Sep 17 00:00:00 2001 From: LoveSy Date: Sun, 1 Sep 2024 23:55:27 +0800 Subject: [PATCH] Return exit value of action.sh --- scripts/app_functions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/app_functions.sh b/scripts/app_functions.sh index 78ad50003..ed47aac2b 100644 --- a/scripts/app_functions.sh +++ b/scripts/app_functions.sh @@ -192,8 +192,10 @@ printvar() { run_action() { local MODID="$1" cd "/data/adb/modules/$MODID" - ASH_STANDALONE=1 sh ./action.sh + sh ./action.sh + local RES=$? cd / + return $RES } ##########################