diff --git a/src/Composer/Installer/BinaryInstaller.php b/src/Composer/Installer/BinaryInstaller.php index 12787d48c..ec0fbd337 100644 --- a/src/Composer/Installer/BinaryInstaller.php +++ b/src/Composer/Installer/BinaryInstaller.php @@ -397,9 +397,8 @@ PROXY; return <</dev/null 2>&1) -if [ -z "\$self" ] -then +self=\$(realpath \$0 2> /dev/null) +if [ -z "\$self" ]; then self="\$0" fi