rm warning cmd (not used); update error fmt

This commit is contained in:
James Barnett 2017-03-21 16:11:23 -05:00
parent c41c294dba
commit a54039effe
No known key found for this signature in database
GPG key ID: E4B5E45AA3B8C5C3

View file

@ -29,8 +29,7 @@ declare -i x=0
declare -r pre_or_post=$1 declare -r pre_or_post=$1
out() { printf "$1 $2\n" "${@:3}"; } out() { printf "$1 $2\n" "${@:3}"; }
error() { out "==> \033[00;31mERROR:\033[00m" "$@"; } >&2 error() { out "==> \033[00;31merror:\033[00m" "$@"; } >&2
warning() { out "==> \033[00;33mWARNING:\033[00m" "$@"; } >&2
die() { die() {
error "$@" error "$@"
[[ $PACMAN_ABORT_ON_FAIL == "no" ]] && exit 0 [[ $PACMAN_ABORT_ON_FAIL == "no" ]] && exit 0