fix pacman abort on fail

This commit is contained in:
James Barnett 2017-02-14 11:49:19 -06:00
parent 123e33e162
commit 267a497f4e
No known key found for this signature in database
GPG key ID: E4B5E45AA3B8C5C3

View file

@ -30,8 +30,8 @@ error() { out "==> \033[00;31mERROR:\033[00m" "$@"; } >&2
warning() { out "==> \033[00;33mWARNING:\033[00m" "$@"; } >&2
die() {
error "$@"
[[ $PACMAN_ABORT_ON_FAIL == "no" ]] && exit 0
exit 1
[[ $PACMAN_ABORT_ON_FAIL == "yes" ]] && exit 1
exit 0
}
error_exit() { die "Encountered unknown error."; }
kill_exit() { die "\nExited due to user intervention."; }