1
0
Fork 0

Fix symlink resolution in shell proxy (#10412)

pull/10415/head
John Stevenson 2021-12-31 20:56:46 +00:00 committed by GitHub
parent d965c26c5c
commit 4829a401d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -397,9 +397,8 @@ PROXY;
return <<<PROXY
#!/usr/bin/env sh
self=\$(realpath \$0 >/dev/null 2>&1)
if [ -z "\$self" ]
then
self=\$(realpath \$0 2> /dev/null)
if [ -z "\$self" ]; then
self="\$0"
fi