summaryrefslogtreecommitdiff
path: root/libalpine.sh
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2007-10-16 17:55:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2007-10-16 17:55:45 +0000
commitb2f97315c17db0cde26b9e070ee73fdb8e57290c (patch)
treee4cb11c6f50905c536ed976941f504e3e5c58281 /libalpine.sh
parent838cb4b1494ab9c3cfc7c0a952aaf220625758df (diff)
downloadalpine-conf-b2f97315c17db0cde26b9e070ee73fdb8e57290c.zip
vecho. -p option for password. thanks to Alexander Poslavsky
Diffstat (limited to 'libalpine.sh')
-rwxr-xr-xlibalpine.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/libalpine.sh b/libalpine.sh
index 8b68bd7..776031a 100755
--- a/libalpine.sh
+++ b/libalpine.sh
@@ -21,6 +21,11 @@ echon () {
$ECHON "$*$NNL"
}
+# echo if in verbose mode
+vecho() {
+ [ -n "$VERBOSE" ] && echo "$@"
+}
+
init_tmpdir() {
local omask=`umask`
local __tmpd="/tmp/$PROGRAM-${$}-`date +%s`"