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

Commit

Permalink
Pass return codes from child processes
Browse files Browse the repository at this point in the history
  • Loading branch information
Daryl Lozupone committed Aug 31, 2016
1 parent 18eb21c commit 6f678a1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions guest/cli/includes/set-processvm
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/usr/bin/env bash

source "${WPLIB_BOX_INCLUDES_DIR}/set-cli-processvm" $1
ret_code1=$?
source "${WPLIB_BOX_INCLUDES_DIR}/set-web-processvm" $1
ret_code2=$?

if [ $ret_code1 -eq 0 ] && [ $ret_code2 -eq 0 ]; then
return 0
else
return 1
fi


0 comments on commit 6f678a1

Please sign in to comment.