@@ -434,11 +434,7 @@ get_version() {
434434 return
435435 fi
436436
437- version=$( cat ./.dvmrc)
438- if [ -f " $DVM_DIR /versions/$version /deno" ]
439- then
440- DVM_TARGET_VERSION=" $version "
441- fi
437+ DVM_TARGET_VERSION=$( cat ./.dvmrc)
442438}
443439
444440# use_version
@@ -482,7 +478,7 @@ use_version() {
482478
483479 echo " Using deno $DVM_TARGET_VERSION now."
484480 else
485- echo " Deno $DVM_TARGET_VERSION is not installed, please run 'dvm install $DVM_TARGET_VERSION ' to install."
481+ echo " Deno $DVM_TARGET_VERSION is not installed, you can run 'dvm install $DVM_TARGET_VERSION ' to install it ."
486482 exit 1
487483 fi
488484}
@@ -640,7 +636,7 @@ fix_invalid_versions() {
640636 fi
641637
642638 for version_path in " $DVM_DIR /doctor_temp/" *
643- do
639+ do
644640 version=${version_path##*/ }
645641
646642 if [ -d " $DVM_DIR /versions/$version " ]
@@ -672,7 +668,7 @@ print_doctor_message() {
672668 echo " Invalid versions:"
673669 echo -e " $invalid_message "
674670 fi
675-
671+
676672 if [ -n " $corrupted_message " ]
677673 then
678674 echo " Corrupted versions:"
@@ -702,7 +698,7 @@ scan_and_fix_versions() {
702698 version=${version_path##*/ }
703699
704700 raw_output=$( " $version_path /deno" --version 2> /dev/null)
705-
701+
706702 if [ -z " $raw_output " ]
707703 then
708704 corrupted_message=" $corrupted_message$version \n"
0 commit comments