scripts/repair in rvm-1.0.0 vs scripts/repair in rvm-1.0.1
- old
+ new
@@ -9,10 +9,10 @@
# Removes stale symlinks in $rvm_bin_path, likely
# related to wrappers.
repair_symlinks() {
__rvm_pushpop "$rvm_bin_path"
- for executable_name in $(\find . -type l); do
+ for executable_name in $(\find \. -type l); do
[[ -e "$executable_name" || "$(readlink "$executable_name")" != "$rvm_wrappers_path/"* ]] && continue
if [[ -f "$executable_name" ]] ; then
$rvm_scripts_path/log "info" "Removing stale symlink from $(basename "$executable_name")"
\rm -f "$executable_name"
fi