Skip to content

Commit 54b6eb3

Browse files
committed
Use ! to indicate sh expression
1 parent 21fa15d commit 54b6eb3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

git-fmt-diff

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,9 @@ process_file () (
369369
return
370370
fi
371371

372-
if [ ! -x "$(command -v "${formatter%% *}")" ]; then
372+
if [ "${formatter%% *}" = "!" ]; then
373+
formatter="${formatter#! *}"
374+
elif [ ! -x "$(command -v "${formatter%% *}")" ]; then
373375
warn "format program '${formatter%% *}' not found"
374376
return
375377
fi

0 commit comments

Comments
 (0)