소스 검색

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 년 전
부모
커밋
22d1b57e6d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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