From 22fd8180313c40b313e62941348db03e8592afab Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 18 Oct 2007 08:07:34 +0000 Subject: simplify use of password --- libalpine.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libalpine.sh') diff --git a/libalpine.sh b/libalpine.sh index 776031a..ce1f2de 100755 --- a/libalpine.sh +++ b/libalpine.sh @@ -26,6 +26,16 @@ vecho() { [ -n "$VERBOSE" ] && echo "$@" } +# echo unless quiet mode +qecho() { + [ -z "$QUIET" ] && echo "$@" +} + +# echo to stderr +eecho() { + echo "$@" >&2 +} + init_tmpdir() { local omask=`umask` local __tmpd="/tmp/$PROGRAM-${$}-`date +%s`" -- cgit v1.2.3