summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-26 21:16:38 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-26 21:16:38 -0400
commitf32c679946fa6d28981bda4f16959bf90656b2f6 (patch)
treedc726d19c88880cc6b4e828e55eeff1856ff5710 /src/lib
parent366641b7bc2e1b2e0bd12ec3b3483c9149cd64cb (diff)
lib/conf.sh: fix bug with `set -u`
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/conf.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/conf.sh b/src/lib/conf.sh
index ca25f70..73dfca4 100644
--- a/src/lib/conf.sh
+++ b/src/lib/conf.sh
@@ -71,7 +71,7 @@ check_vars() {
shift
local ret=0
for VAR in "$@"; do
- if [[ -z ${!VAR} ]]; then
+ if [[ -z ${!VAR:-} ]]; then
if [[ $(list_files $slug|wc -l) > 1 ]]; then
echo "Configure '$VAR' in one of:"
list_files $slug | sed 's/./ -> &/'