Skip to content

Commit

Permalink
exit on failed update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Nov 15, 2023
1 parent 003ded2 commit 73a9115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion installation/routines/update_raspi_os.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
update_raspi_os() {
echo "Updating Raspberry Pi OS" | tee /dev/fd/3

sudo apt-get -qq -y update; sudo apt-get -qq -y full-upgrade; sudo apt-get -qq -y autoremove
sudo apt-get -qq -y update && sudo apt-get -qq -y full-upgrade && sudo apt-get -qq -y autoremove || exit_on_error "Failed to Update Raspberry Pi OS"

echo "DONE: update_raspi_os"
}

0 comments on commit 73a9115

Please sign in to comment.