Browse Source

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.
Gus Cairo 1 year ago
parent
commit
22d1b57e6d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dev/format.sh

+ 1 - 1
dev/format.sh

@@ -69,7 +69,7 @@ if "$lint"; then
 
     To fix, run the following command:
 
-    % $THIS_SCRIPT -f
+    % $here/format.sh -f
     "
     exit "${SWIFT_FORMAT_RC}"
   fi