We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f4d2f0e + 827f5a7 commit 48f3e7dCopy full SHA for 48f3e7d
etc/DependencyInstaller.sh
@@ -306,7 +306,12 @@ _installCommonDev() {
306
if [[ ! -z ${PREFIX} ]]; then
307
# Emit an environment setup script
308
cat > ${PREFIX}/env.sh <<EOF
309
-depRoot="\$(dirname \$(readlink -f "\${BASH_SOURCE[0]}"))"
+if [ -n "\$ZSH_VERSION" ]; then
310
+ depRoot="\$(dirname \$(readlink -f "\${(%):-%x}"))"
311
+else
312
+ depRoot="\$(dirname \$(readlink -f "\${BASH_SOURCE[0]}"))"
313
+fi
314
+
315
PATH=\${depRoot}/bin:\${PATH}
316
LD_LIBRARY_PATH=\${depRoot}/lib64:\${depRoot}/lib:\${LD_LIBRARY_PATH}
317
EOF
0 commit comments