File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -502,6 +502,16 @@ export DVM_VERSION="v0.8.3"
502502# # Command clean ##
503503# ##################
504504{
505+ # Remove version and download caches.
506+ dvm_clean_caches () {
507+ if [ -d " $DVM_DIR /cache" ]
508+ then
509+ rm -rf " $DVM_DIR /cache"
510+ fi
511+
512+ dvm_clean_download_cache
513+ }
514+
505515 # Clean downloading caches in the disk.
506516 dvm_clean_download_cache () {
507517 if [ ! -d " $DVM_DIR /download" ]
@@ -1628,7 +1638,7 @@ export DVM_VERSION="v0.8.3"
16281638 unset -f dvm
16291639 # unset dvm functions
16301640 unset -f dvm_build_deno dvm_check_alias_dir dvm_check_build_dependencies \
1631- dvm_check_local_deno_clone dvm_clean_download_cache \
1641+ dvm_check_local_deno_clone dvm_clean_caches dvm_clean_download_cache \
16321642 dvm_clone_deno_source dvm_compare_version dvm_confirm_with_prompt \
16331643 dvm_copy_build_target_to_versions_dir dvm_deactivate dvm_debug \
16341644 dvm_download_deno dvm_download_file dvm_extract_file dvm_failure \
@@ -1927,8 +1937,7 @@ dvm() {
19271937
19281938 ;;
19291939 " clean" )
1930- # remove all download packages.
1931- dvm_clean_download_cache
1940+ dvm_clean_caches
19321941
19331942 ;;
19341943 " current" )
You can’t perform that action at this time.
0 commit comments