most likely is going to be set to no
This commit is contained in:
parent
e9a5cf31af
commit
505d62a80d
1 changed files with 4 additions and 4 deletions
|
|
@ -26,12 +26,12 @@ declare -r name="snap-pac"
|
||||||
declare PACMAN_ABORT_ON_FAIL="no"
|
declare PACMAN_ABORT_ON_FAIL="no"
|
||||||
|
|
||||||
out() { printf "$1 $2\n" "${@:3}"; }
|
out() { printf "$1 $2\n" "${@:3}"; }
|
||||||
error() { out "\033[00;31m==> ERROR:\033[00m" "$@"; } >&2
|
error() { out "==> \033[00;31mERROR:\033[00m" "$@"; } >&2
|
||||||
warning() { out "\033[00;33m==> WARNING:\033[00m" "$@"; } >&2
|
warning() { out "==> \033[00;33mWARNING:\033[00m" "$@"; } >&2
|
||||||
die() {
|
die() {
|
||||||
error "$@"
|
error "$@"
|
||||||
[[ $PACMAN_ABORT_ON_FAIL == "yes" ]] && exit 1
|
[[ $PACMAN_ABORT_ON_FAIL == "no" ]] && exit 0
|
||||||
exit 0
|
exit 1
|
||||||
}
|
}
|
||||||
error_exit() { die "Encountered unknown error."; }
|
error_exit() { die "Encountered unknown error."; }
|
||||||
kill_exit() { die "\nExited due to user intervention."; }
|
kill_exit() { die "\nExited due to user intervention."; }
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue