better exit code for the update script

now the script exits with the return code of the update command