From 897cce8b1b258c528f29a168615cea4a1c157cfb Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 17 Mar 2019 06:38:43 -0400 Subject: ob_error(), ob_warn(), ob_info(): Fix formatting --- 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 } -- cgit v0.9.1