소스 검색

scripts: Allow checkShellScripts.sh to be run from its parent directory

... on systems that don't have realpath.

Part of 31679.
teor 4 년 전
부모
커밋
8c37bf738d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scripts/maint/checkShellScripts.sh

+ 1 - 1
scripts/maint/checkShellScripts.sh

@@ -21,7 +21,7 @@ if command -v realpath ; then
     HERE=$(dirname "$(realpath "$0")")
 else
     HERE=$(dirname "$0")
-    if [ ! -d "$HERE" ]; then
+    if [ ! -d "$HERE" ] || [ "$HERE" = "." ]; then
         HERE=$(dirname "$PWD/$0")
     fi
 fi