Pass along exit code when running a sub-script, instead of always running exit 0

This commit is contained in:
glitch452 2021-01-23 15:58:03 -05:00
parent 9131f2754a
commit be692a8782
4 changed files with 22 additions and 22 deletions

View file

@ -143,7 +143,7 @@ main(){
:
elif [ "$UpdateCmd" = "Update" ]; then
$SUDO ${pivpnScriptDir}/update.sh "$@"
exit 0
exit "$?"
elif [ "$UpdateCmd" = "Repair" ]; then
# shellcheck disable=SC1090
source "$setupVars"