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 a644365 + 22e9730 commit 62daa62Copy full SHA for 62daa62
dvm.sh
@@ -2196,13 +2196,16 @@ dvm() {
2196
"which")
2197
shift
2198
2199
- dvm_get_version "$@"
2200
-
2201
- if [ -z "$DVM_TARGET_VERSION" ]
+ if [ "$#" = "0" ] || [ "$1" != "current" ]
2202
then
2203
- dvm_print_help
2204
- dvm_failure
2205
- return
+ dvm_get_version "$@"
+
+ if [ -z "$DVM_TARGET_VERSION" ]
+ then
+ dvm_print_help
2206
+ dvm_failure
2207
+ return
2208
+ fi
2209
fi
2210
2211
dvm_locate_version "$@"
0 commit comments