Minor changes to save exit code from pi-upgrade to a file and then use pi-update to read from that file.