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

Commit 18eb21c

Browse files
authored
Merge pull request #11 from wplib/10-implement-return-codes
Add simple return codes
2 parents 0d73ce1 + 5eeeb88 commit 18eb21c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

guest/cli/box

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,12 @@ fi
6464

6565
if [[ $error -eq 0 ]]; then
6666
echo_if_not_quiet "$*" "*The '$1' command completed without error."
67+
exit 0
6768
else
6869
echo -e "\t"
6970
echo "The '$1' command terminated WITH ERRORS."
7071
echo -e "\t"
72+
exit 1
7173
fi
7274

7375
#check_updates_available "$*"
74-

0 commit comments

Comments
 (0)