Przeglądaj źródła

remove broken links too

Alexander Shiryaev 12 lat temu
rodzic
commit
f7c17a256b
1 zmienionych plików z 1 dodań i 1 usunięć
  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