Merge pull request #309 from klightspeed/1.4#cmdstatus

Return the status from the last command run
This commit is contained in:
Fez Vrasta 2015-12-02 14:09:06 +01:00
commit c62b3b4a14

View File

@ -334,11 +334,13 @@ function checkForUpdate(){
echo -e "Available version:" "$GREEN" $bnumber "$NORMAL"
echo -e "Your server needs to be restarted in order to receive the latest update."
echo -e "Run \"arkmanager update\" to do so"
return 1
else
tput rc; tput ed;
echo -e "Current version:" "$GREEN" $instver "$NORMAL"
echo -e "Available version:" "$GREEN" $bnumber "$NORMAL"
echo "Your server is up to date!"
return 0
fi
}
@ -1410,8 +1412,11 @@ while true; do
exit 1
;;
esac
status=$?
shift
if [ $# -eq 0 ]; then
break
fi
done
exit $status