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

Commit 0ee61d7

Browse files
authored
Merge pull request #17 from wplib/16-pass-return-codes
Pass return codes from child processes
2 parents 706e848 + 6f678a1 commit 0ee61d7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

guest/cli/includes/set-processvm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#!/usr/bin/env bash
22

33
source "${WPLIB_BOX_INCLUDES_DIR}/set-cli-processvm" $1
4+
ret_code1=$?
45
source "${WPLIB_BOX_INCLUDES_DIR}/set-web-processvm" $1
6+
ret_code2=$?
7+
8+
if [ $ret_code1 -eq 0 ] && [ $ret_code2 -eq 0 ]; then
9+
return 0
10+
else
11+
return 1
12+
fi
13+
514

0 commit comments

Comments
 (0)