aboutsummaryrefslogtreecommitdiff
path: root/scripts/maint/checkShellScripts.sh
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-09-10 12:23:12 +1000
committerteor <teor@torproject.org>2019-09-10 12:23:12 +1000
commit8c37bf738dce0bf8487e94e386ed3d580e5d13c3 (patch)
tree8370ef937f04bb73acb3ab00e60973ec48c33420 /scripts/maint/checkShellScripts.sh
parent796a9b37ea346f413f6684505ca31879ddf3f0f1 (diff)
downloadtor-8c37bf738dce0bf8487e94e386ed3d580e5d13c3.tar.gz
tor-8c37bf738dce0bf8487e94e386ed3d580e5d13c3.zip
scripts: Allow checkShellScripts.sh to be run from its parent directory
... on systems that don't have realpath. Part of 31679.
Diffstat (limited to 'scripts/maint/checkShellScripts.sh')
-rwxr-xr-xscripts/maint/checkShellScripts.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/maint/checkShellScripts.sh b/scripts/maint/checkShellScripts.sh
index 02d1275c48..18a83d1fbb 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