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

@ -14,12 +14,12 @@ scriptDir="/opt/pivpn"
uninstallServer(){
$SUDO ${scriptDir}/uninstall.sh
exit 0
exit "$?"
}
backup(){
$SUDO ${scriptDir}/backup.sh
exit 0
exit "$?"
}
showHelp(){