From 505d62a80d4237ba88475f3a4730658e79bacf66 Mon Sep 17 00:00:00 2001 From: James Barnett Date: Tue, 14 Feb 2017 11:21:51 -0600 Subject: [PATCH] most likely is going to be set to no --- scripts/snap-pac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/snap-pac b/scripts/snap-pac index 4e23f0d..eb72750 100755 --- a/scripts/snap-pac +++ b/scripts/snap-pac @@ -26,12 +26,12 @@ declare -r name="snap-pac" declare PACMAN_ABORT_ON_FAIL="no" out() { printf "$1 $2\n" "${@:3}"; } -error() { out "\033[00;31m==> ERROR:\033[00m" "$@"; } >&2 -warning() { out "\033[00;33m==> WARNING:\033[00m" "$@"; } >&2 +error() { out "==> \033[00;31mERROR:\033[00m" "$@"; } >&2 +warning() { out "==> \033[00;33mWARNING:\033[00m" "$@"; } >&2 die() { error "$@" - [[ $PACMAN_ABORT_ON_FAIL == "yes" ]] && exit 1 - exit 0 + [[ $PACMAN_ABORT_ON_FAIL == "no" ]] && exit 0 + exit 1 } error_exit() { die "Encountered unknown error."; } kill_exit() { die "\nExited due to user intervention."; }