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

commit 8c37bf738dce0bf8487e94e386ed3d580e5d13c3 Author: teor <teor@torproject.org> 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
participants (1)
-
asn@torproject.org