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 840e0f2 commit 9d9a4c1Copy full SHA for 9d9a4c1
1 file changed
dvm.sh
@@ -27,7 +27,11 @@ fi
27
if [ -n "$BASH_SOURCE" ]; then
28
DVM_SCRIPT_SOURCE="${BASH_SOURCE[0]}"
29
fi
30
-export DVM_HELPER="$(command cd $DVM_CD_FLAGS "$(dirname "${DVM_SCRIPT_SOURCE:-$0}")" > /dev/null && command pwd)/dvm-helper/dvm-helper"
+if command -v builtin >/dev/null 2>&1; then
31
+ export DVM_HELPER="$(builtin cd $DVM_CD_FLAGS "$(dirname "${DVM_SCRIPT_SOURCE:-$0}")" > /dev/null && command pwd)/dvm-helper/dvm-helper"
32
+else
33
+ export DVM_HELPER="$(cd $DVM_CD_FLAGS "$(dirname "${DVM_SCRIPT_SOURCE:-$0}")" > /dev/null && command pwd)/dvm-helper/dvm-helper"
34
+fi
35
unset DVM_SCRIPT_SOURCE 2> /dev/null
36
37
dvm() {
0 commit comments