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.
1 parent 2646ce3 commit 827f5a7Copy full SHA for 827f5a7
etc/DependencyInstaller.sh
@@ -289,7 +289,12 @@ _installCommonDev() {
289
if [[ ! -z ${PREFIX} ]]; then
290
# Emit an environment setup script
291
cat > ${PREFIX}/env.sh <<EOF
292
-depRoot="\$(dirname \$(readlink -f "\${BASH_SOURCE[0]}"))"
+if [ -n "\$ZSH_VERSION" ]; then
293
+ depRoot="\$(dirname \$(readlink -f "\${(%):-%x}"))"
294
+else
295
+ depRoot="\$(dirname \$(readlink -f "\${BASH_SOURCE[0]}"))"
296
+fi
297
+
298
PATH=\${depRoot}/bin:\${PATH}
299
LD_LIBRARY_PATH=\${depRoot}/lib64:\${depRoot}/lib:\${LD_LIBRARY_PATH}
300
EOF
0 commit comments