Skip to content

Commit 22d1b57

Browse files
authored
Remove unbounded variable from formatting script (#2091)
The formatting script should print a helpful message when formatting check fails showing which command to run to fix it. However, it fails to print this because it cannot find the `THIS_SCRIPT` env variable.
1 parent d5e0d70 commit 22d1b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ if "$lint"; then
6969
7070
To fix, run the following command:
7171
72-
% $THIS_SCRIPT -f
72+
% $here/format.sh -f
7373
"
7474
exit "${SWIFT_FORMAT_RC}"
7575
fi

0 commit comments

Comments
 (0)