From 73a9115c5e71fb5fa0bd04891a8fcb429836bb74 Mon Sep 17 00:00:00 2001 From: Alvin Schiller <103769832+AlvinSchiller@users.noreply.github.com> Date: Wed, 15 Nov 2023 13:41:56 +0100 Subject: [PATCH] exit on failed update --- installation/routines/update_raspi_os.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation/routines/update_raspi_os.sh b/installation/routines/update_raspi_os.sh index b7c356454..4f3f2d3d1 100644 --- a/installation/routines/update_raspi_os.sh +++ b/installation/routines/update_raspi_os.sh @@ -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" }