From 1e91e414cc51d06ac4028ec70a8d8b89467e4ca4 Mon Sep 17 00:00:00 2001 From: Tyler Akins Date: Mon, 13 Nov 2017 10:31:51 -0600 Subject: [PATCH] Fix for when running in strict mode --- mo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mo b/mo index 2d0f59e..8bc1177 100755 --- a/mo +++ b/mo @@ -835,13 +835,13 @@ moShow() { moSplit moNameParts "$1" "." - if [[ -z "${moNameParts[1]}" ]]; then + if [[ -z "${moNameParts[1]-}" ]]; then if moIsArray "$1"; then eval moJoin moJoined "," "\${$1[@]}" echo -n "$moJoined" else # shellcheck disable=SC2031 - if [[ -z "$MO_FAIL_ON_UNSET" ]] || moTestVarSet "$1"; then + if [[ -z "${MO_FAIL_ON_UNSET-}" ]] || moTestVarSet "$1"; then echo -n "${!1}" else echo "Env variable not set: $1" >&2