Commit 2694e33e authored by Dashamir Hoxha's avatar Dashamir Hoxha

Return the error status of the script

parent 34872925
......@@ -27,7 +27,9 @@ cmd_inject() {
cp $scrfile tmp/
echo -e "\n--> Running script '$scrfile'"
cmd_exec "/host/tmp/$(basename $scrfile)" "[email protected]"
local err=$?
rm -rf tmp/
return $err
_print_script_list() {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment