diff options
author | teor <teor@torproject.org> | 2019-09-10 12:23:12 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-09-10 12:23:12 +1000 |
commit | 8c37bf738dce0bf8487e94e386ed3d580e5d13c3 (patch) | |
tree | 8370ef937f04bb73acb3ab00e60973ec48c33420 /scripts/maint/checkShellScripts.sh | |
parent | 796a9b37ea346f413f6684505ca31879ddf3f0f1 (diff) | |
download | tor-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-x | scripts/maint/checkShellScripts.sh | 2 |
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 |