瀏覽代碼

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