cleanup
[cmdllinux.git] / scripts / _find_dirlinks.sh
blobc76e1d88dcf6cb629343c29f923913c6a948bb61
1 if [ ! -z "$1" ]; then
2 if [ ! -d "$1" ]; then
3 echo "Directory not found: $1"
4 exit 1
5 fi
6 DIR="$1"
7 cd "$DIR"
8 fi
10 find -type l -printf "%P\n" | while read link; do [ -d "$link" ] && echo "$link"; done