| commit | 8942585c960055cb44e10f7f429e8fd9d5f66d9a | [log] [tgz] |
|---|---|---|
| author | Jenkins <jenkins@review.openstack.org> | Wed Feb 04 03:04:59 2015 +0000 |
| committer | Gerrit Code Review <review@openstack.org> | Wed Feb 04 03:04:59 2015 +0000 |
| tree | 02cf74d4c48eaa30694f554e18e23c7b9027e2bf | |
| parent | c195b643fe070833fc53fb5b3752896fb91a0b9e [diff] | |
| parent | a1b82cc1b5a7172c3fdf17d2c3f0725660911ad7 [diff] |
Merge "Fix unbound literal in trueorfalse()"
diff --git a/functions-common b/functions-common index 4d1c89a..b92fa55 100644 --- a/functions-common +++ b/functions-common
@@ -245,7 +245,7 @@ set +o xtrace local default=$1 local literal=$2 - local testval=${!literal} + local testval=${!literal:-} [[ -z "$testval" ]] && { echo "$default"; return; } [[ "0 no No NO false False FALSE" =~ "$testval" ]] && { echo "False"; return; }