summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-06-07 01:09:40 +0200
committerDave Reisner <d@falconindy.com>2011-06-16 22:16:47 +0200
commitfae6f29b149e343bd638e67f25a6a1001ca37fb0 (patch)
tree33c3e99abd0a78eb4b857cc9528a7d709b74195f /functions
parent28b191ea76efc0f8c39bc9159cdc10b72ddf8740 (diff)
downloadmkinitcpio-fae6f29b149e343bd638e67f25a6a1001ca37fb0.tar.gz
mkinitcpio-fae6f29b149e343bd638e67f25a6a1001ca37fb0.tar.xz
declare SAVELIST, QUIET, SHOW_AUTOMODS as faux booleans
Signed-off-by: Dave Reisner <d@falconindy.com>
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 97ffaf3..b4181be 100644
--- a/functions
+++ b/functions
@@ -1,6 +1,6 @@
#!/bin/bash
-msg () { [ "${QUIET}" = "n" ] && echo $@; }
+msg () { (( QUIET )) || echo $@; }
err () { echo "ERROR: $@" >&2; }
die () { echo "FATAL: $@" >&2; cleanup; exit 1; }