diff options
author | P. J. McDermott <pjm@nac.net> | 2012-08-01 05:33:41 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-08-01 05:33:41 (EDT) |
commit | b0e78a36ced16e1087b68d2825926760d664f856 (patch) | |
tree | 00b4417b4d236fafcdfaee35005b155c7fa6ed6e | |
parent | 74635e3a60a9fb80b5dbc98e66e926771aadd0ba (diff) |
Fix eval commands.
-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}" } |