summaryrefslogtreecommitdiff
path: root/libalpine.sh
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2007-10-18 08:07:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2007-10-18 08:07:34 +0000
commit22fd8180313c40b313e62941348db03e8592afab (patch)
treeb74f7151ead8665568d14f556d0eea7f2530d407 /libalpine.sh
parentb2f97315c17db0cde26b9e070ee73fdb8e57290c (diff)
downloadalpine-conf-22fd8180313c40b313e62941348db03e8592afab.zip
simplify use of password
Diffstat (limited to 'libalpine.sh')
-rwxr-xr-xlibalpine.sh10
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`"