commit | a1b82cc1b5a7172c3fdf17d2c3f0725660911ad7 | [log] [tgz] |
---|---|---|
author | Dean Troyer <dtroyer@gmail.com> | Fri Jan 30 13:54:40 2015 -0600 |
committer | Dean Troyer <dtroyer@gmail.com> | Fri Jan 30 14:59:40 2015 -0600 |
tree | 984ba9c6175f3f8d3a6d4368b77cef393a8d0a8c | |
parent | b9a7d3b5e4f01d932709633f2b5b9461ecdbd0cb [diff] [blame] |
Fix unbound literal in trueorfalse() Change-Id: I4c465819c311604e97d24e081389ff531f8a42fa
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; }