From 5a7f47b6c2a1c3f4e0222c156183c2dad5b10e67 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 17 Apr 2022 12:41:40 -0400 Subject: [PATCH] Update debian-install.sh --- setup/debian-install.sh | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/setup/debian-install.sh b/setup/debian-install.sh index db41b5ce..bc0fd4d7 100644 --- a/setup/debian-install.sh +++ b/setup/debian-install.sh @@ -1,27 +1,6 @@ -#!/usr/bin/env bash - -set -o errexit -set -o errtrace -set -o nounset -set -o pipefail -shopt -s expand_aliases -alias die='EXIT=$? LINE=$LINENO error_exit' -trap die ERR -trap 'die "Script interrupted."' INT - -function error_exit() { - trap - ERR - local DEFAULT='Unknown failure occured.' - local REASON="\e[97m${1:-$DEFAULT}\e[39m" - local FLAG="\e[91m[ERROR:LXC] \e[93m$EXIT@$LINE" - msg "$FLAG $REASON" - exit $EXIT -} -function msg() { - local TEXT="$1" - echo -e "$TEXT" -} - +#!/usr/bin/env bash -ex +set -euo pipefail +shopt -s inherit_errexit nullglob YW=`echo "\033[33m"` RD=`echo "\033[01;31m"` BL=`echo "\033[36m"`