summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/cmd.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cmd.sh b/lib/cmd.sh
index 348f695..b7a881b 100644
--- a/lib/cmd.sh
+++ b/lib/cmd.sh
@@ -68,7 +68,7 @@ print_cmd_summaries()
else
printf ' %-20s ' "${cmd}"
fi
- summary="$(eval printf \'%s\' \"\$\{cmd_"${cmd}"_summary\}\")"
+ summary="$(get_msg "cmd_${cmd}_summary")"
printf '%s\n' "${summary}" | fold -s -w 56 | \
sed "2,\$s/^/${padding}/;"
done
@@ -80,7 +80,7 @@ print_cmd_usage()
cmd="${1}"
- usage="$(eval printf \'%s\' \"\$\{cmd_"${cmd}"_usage\}\")"
+ usage="$(get_msg "cmd_${cmd}_usage")"
printf 'Usage: %s %s %s\n' "${0}" "${cmd}" "${usage}"
}