Merge staging at '8d490ca9934d0c01e1e9ade455657e54e2e843c0' into master

This commit is contained in:
Frederik Rietdijk
2018-02-26 13:05:32 +01:00
33 changed files with 389 additions and 267 deletions
+5 -1
View File
@@ -25,7 +25,11 @@ mangleVarBool() {
for infix in "${role_infixes[@]}"; do
local inputVar="${var/+/${infix}}"
if [ -v "$inputVar" ]; then
let "${outputVar} |= ${!inputVar}"
# "1" in the end makes `let` return success error code when
# expression itself evaluates to zero.
# We don't use `|| true` because that would silence actual
# syntax errors from bad variable values.
let "${outputVar} |= ${!inputVar:-0}" "1"
fi
done
}