File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,14 @@ cleanup () {
51
51
52
52
debug () (
53
53
[ " $1 " != " --" ] && [ " $gf_debug " -eq 0 ] && return
54
- >&2 printf " [debug] %s" " $( basename " $0 " ) "
55
- if [ -n " $BASH_VERSION " ]; then
56
- # shellcheck disable=SC3028,SC3054
57
- >&2 printf " :%-3d %30s" " ${BASH_LINENO[0]} " " ${FUNCNAME[1]} " ' ()'
54
+ if [ -z " $BASH_VERSION " ]; then
55
+ >&2 printf ' [debug] %s | %s\n' " $( basename " $0 " ) " " $* "
56
+ return
58
57
fi
59
- >&2 printf " | %s\n" " $* "
58
+
59
+ # shellcheck disable=SC3028,SC3054
60
+ >&2 printf ' [debug] %s:%-3d %30s | %s\n' \
61
+ " $( basename " $0 " ) " " ${BASH_LINENO[0]} " " ${FUNCNAME[1]} " ' ()' " $* "
60
62
)
61
63
62
64
pat_list_to_case () {
@@ -399,7 +401,6 @@ process_file () (
399
401
rm_list__push " $fmtcmd "
400
402
echo " $formatter " > " $fmtcmd "
401
403
402
- # shellcheck disable=SC2086
403
404
eval " sh '$fmtcmd ' < '$b_raw ' > '$b_fmt ' $g_fmtprg_devnull "
404
405
rm_list__push " $b_fmt "
405
406
You can’t perform that action at this time.
0 commit comments