1 Commits
2.0.1 ... 2.0.2

Author SHA1 Message Date
Tyler Akins
4f615a0faf More fixes if variables are not set and strict mode is enabled 2017-11-13 10:43:32 -06:00

4
mo
View File

@@ -841,9 +841,9 @@ moShow() {
echo -n "$moJoined"
else
# shellcheck disable=SC2031
if [[ -z "${MO_FAIL_ON_UNSET-}" ]] || moTestVarSet "$1"; then
if moTestVarSet "$1"; then
echo -n "${!1}"
else
elif [[ -n "${MO_FAIL_ON_UNSET-}" ]]; then
echo "Env variable not set: $1" >&2
exit 1
fi