diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2007-10-18 08:07:34 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2007-10-18 08:07:34 +0000 |
commit | 22fd8180313c40b313e62941348db03e8592afab (patch) | |
tree | b74f7151ead8665568d14f556d0eea7f2530d407 /libalpine.sh | |
parent | b2f97315c17db0cde26b9e070ee73fdb8e57290c (diff) | |
download | alpine-conf-22fd8180313c40b313e62941348db03e8592afab.tar.bz2 alpine-conf-22fd8180313c40b313e62941348db03e8592afab.tar.xz |
simplify use of password
Diffstat (limited to 'libalpine.sh')
-rwxr-xr-x | libalpine.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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`" |