From 8684a5cdf9e114dbb5df742d03bd315409bb87cb Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 23 Oct 2021 17:00:35 -0400 Subject: [PATCH] Update debian11_setup.sh --- debian11_setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debian11_setup.sh b/debian11_setup.sh index 45560d4f..ad58832c 100644 --- a/debian11_setup.sh +++ b/debian11_setup.sh @@ -2,9 +2,9 @@ # Setup script environment set -o errexit #Exit immediately if a pipeline returns a non-zero status -#set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell +set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell set -o nounset #Treat unset variables as an error -#set -o pipefail #Pipe will exit with last non-zero status if applicable +set -o pipefail #Pipe will exit with last non-zero status if applicable shopt -s expand_aliases alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR @@ -32,7 +32,7 @@ apt-get autoremove >/dev/null # Update container OS msg "Updating container OS..." -apt-get update -y &>/dev/null +apt-get update || true >/dev/null apt-get upgrade &>/dev/null # Install prerequisites