diff options
Diffstat (limited to 'lib/messages.sh')
-rw-r--r-- | lib/messages.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/messages.sh b/lib/messages.sh index f945c62..68b08f9 100644 --- a/lib/messages.sh +++ b/lib/messages.sh @@ -54,7 +54,7 @@ oh_info() oh_usage() { _util="$(echo "${0##*/}" | sed 's/-/_/g')" - _usage_str="$(eval echo "\$\{oh_str_usage_${_util}\}")" + _usage_str="$(eval echo \$\{oh_str_usage_"${_util}"\})" : "${_usage_str:=${oh_str_usage_none}}" printf '%s\n' "${_usage_str}" } @@ -63,7 +63,7 @@ oh_help() { oh_usage _util="$(echo "${0##*/}" | sed 's/-/_/g')" - _help_str="$(eval echo "\$\{oh_str_help_${_util}\}")" + _help_str="$(eval echo \$\{oh_str_help_"${_util}"\})" : "${_help_str:=${oh_str_help_none}}" printf '%s\n' "${_help_str}" } |