Pārlūkot izejas kodu

remove broken links too

Alexander Shiryaev 12 gadi atpakaļ
vecāks
revīzija
f7c17a256b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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