Return exit value of action.sh

This commit is contained in:
LoveSy 2024-09-01 23:55:27 +08:00 committed by John Wu
parent 60894e458f
commit 310be7ab47

View File

@ -192,8 +192,10 @@ printvar() {
run_action() { run_action() {
local MODID="$1" local MODID="$1"
cd "/data/adb/modules/$MODID" cd "/data/adb/modules/$MODID"
ASH_STANDALONE=1 sh ./action.sh sh ./action.sh
local RES=$?
cd / cd /
return $RES
} }
########################## ##########################