diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-17 06:38:43 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-17 06:38:43 (EDT) |
commit | 897cce8b1b258c528f29a168615cea4a1c157cfb (patch) | |
tree | a3c18f289e4c7a0be2de280d274855e0f84e6439 /lib | |
parent | 83606572e054cab96efbc25e6578bfd3ca455376 (diff) |
ob_error(), ob_warn(), ob_info(): Fix formatting
Diffstat (limited to 'lib')
-rw-r--r-- | lib/output.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/output.sh b/lib/output.sh index b25fe6f..056c929 100644 --- a/lib/output.sh +++ b/lib/output.sh @@ -32,7 +32,8 @@ ob_error() local format="${1}" shift 1 || _ob_abort - printf "$(_ob_get_msg 'output_error_format')\n" "${0##*/}" "${@}" >&2 + printf "$(printf "$(_ob_get_msg 'output_error_format')" \ + "${0##*/}" "${format}")\n" "${@}" >&2 return 0 } @@ -52,7 +53,8 @@ ob_warn() local format="${1}" shift 1 || _ob_abort - printf "$(_ob_get_msg 'output_warning_format')\n" "${0##*/}" "${@}" >&2 + printf "$(printf "$(_ob_get_msg 'output_warning_format')" \ + "${0##*/}" "${format}")\n" "${@}" >&2 return 0 } @@ -71,7 +73,8 @@ ob_info() local format="${1}" shift 1 || _ob_abort - printf "$(_ob_get_msg 'output_info_format')\n" "${0##*/}" "${@}" >&2 + printf "$(printf "$(_ob_get_msg 'output_info_format')" \ + "${0##*/}" "${format}")\n" "${@}" >&2 return 0 } |