scripts/repair in rvm-1.0.9 vs scripts/repair in rvm-1.0.10

- old
+ new

@@ -1,14 +1,18 @@ #!/usr/bin/env bash source "$rvm_path/scripts/base" usage() { - echo "Usage: rvm repair {symlinks,environments,archives,all}" >&2 + echo "Usage: rvm repair {wrappers,symlinks,environments,archives,all}" >&2 return 1 } +repair_wrappers() { + __rvm_regenerate_wrappers +} + # Removes stale symlinks in $rvm_bin_path, likely # related to wrappers. repair_symlinks() { ( builtin cd "${rvm_bin_path:-"$rvm_path/bin"}" @@ -88,10 +92,12 @@ repair_archives repair_environments + repair_wrappers + "$rvm_path/scripts/log" "info" \ "symlinks, archives and environments have been repaired." return 0 } @@ -104,13 +110,14 @@ usage exit $? fi case "$action" in - all) repair_all ;; - symlinks) repair_symlinks ;; + all) repair_all ;; + symlinks) repair_symlinks ;; environments) repair_environments ;; - archives) repair_archives;; - *) usage ;; + archives) repair_archives ;; + wrappers) repair_wrappers ;; + *) usage ;; esac exit $?