Procházet zdrojové kódy

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 před 1 rokem
rodič
revize
22d1b57e6d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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