[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] scripts: Allow checkShellScripts.sh to be run from its parent directory



commit 8c37bf738dce0bf8487e94e386ed3d580e5d13c3
Author: teor <teor@xxxxxxxxxxxxxx>
Date:   Tue Sep 10 12:23:12 2019 +1000

    scripts: Allow checkShellScripts.sh to be run from its parent directory
    
    ... on systems that don't have realpath.
    
    Part of 31679.
---
 scripts/maint/checkShellScripts.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/maint/checkShellScripts.sh b/scripts/maint/checkShellScripts.sh
index 02d1275c4..18a83d1fb 100755
--- a/scripts/maint/checkShellScripts.sh
+++ b/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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits