tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 8c37bf738dce0bf8487e94e386ed3d580e5d13c3
parent 796a9b37ea346f413f6684505ca31879ddf3f0f1
Author: teor <teor@torproject.org>
Date:   Tue, 10 Sep 2019 12:23:12 +1000

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

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

Part of 31679.

Diffstat:
Mscripts/maint/checkShellScripts.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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