Explorar el Código

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

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

Part of 31679.
teor hace 4 años
padre
commit
8c37bf738d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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