Browse Source

remove broken links too

Alexander Shiryaev 12 years ago
parent
commit
f7c17a256b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      BlackBox/switch-target

+ 1 - 1
BlackBox/switch-target

@@ -6,7 +6,7 @@ checkAndRm () {
 		find "${line}" \( -type f -o -type l \) -print |
 		while read l; do
 			to=`echo $l | sed "s/^${line}\///"`
-			if [ -e "${to}" -a -h "${to}" ]; then
+			if [ -h "${to}" ]; then
 				rm -f "${to}"
 			fi
 		done