summaryrefslogtreecommitdiffstats
path: root/libalpine.sh
diff options
context:
space:
mode:
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`"