diff options
author | William Giokas <1007380@gmail.com> | 2013-03-04 02:42:34 -0600 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-03-08 17:04:40 +1000 |
commit | f8ed8620d03e7e6fc58815bbee5b65c786fbc423 (patch) | |
tree | ab1b343dcf9d011217d915686064b46aafa0fd51 /scripts/library | |
parent | 5a67eee78c58475907a2128c46c08c137d41e4f9 (diff) | |
download | pacman-f8ed8620d03e7e6fc58815bbee5b65c786fbc423.tar.xz |
contrib: Make pacdiff colors the same as makepkg
Added an `ask` message function that emulates pacman's appearance.
Signed-off-by: William Giokas <1007380@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/library')
-rw-r--r-- | scripts/library/output_format.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/library/output_format.sh b/scripts/library/output_format.sh index 18f1f588..9f02c00b 100644 --- a/scripts/library/output_format.sh +++ b/scripts/library/output_format.sh @@ -16,6 +16,11 @@ msg2() { printf "${BLUE} ->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1 } +ask() { + local mesg=$1; shift + printf "${BLUE}::${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&1 +} + warning() { local mesg=$1; shift printf "${YELLOW}==> $(gettext "WARNING:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2 |