Skip to content
This repository was archived by the owner on Jan 25, 2019. It is now read-only.

Exit with same error status as script #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sh/cmd/inject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ cmd_inject() {
cp $scrfile tmp/
echo -e "\n--> Running script '$scrfile'"
cmd_exec "/host/tmp/$(basename $scrfile)" "$@"
err=$?
rm -rf tmp/
[[ $err == 0 ]] || exit $err
Copy link
Member Author

@dashohoxha dashohoxha Jun 30, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it work with just return $err ?

}

_print_script_list() {
Expand Down