only match links b2bb6ebe
Connor Lane Smith · 2011-05-14 23:21 1 file(s) · +1 −1
dmenu_path +1 −1
3 3
IFS=:
4 4
5 5
if ! test -f "$CACHE" || find $PATH -type d -newer "$CACHE" | grep -q .; then
6 -
	find -L $PATH -type f \( -perm -1 -o -perm -10 -o -perm -100 \) | sed 's/.*\///' | sort -u > "$CACHE"
6 +
	find $PATH ! -type d \( -perm -1 -o -perm -10 -o -perm -100 \) | sed 's/.*\///' | sort -u > "$CACHE"
7 7
fi
8 8
9 9
cat "$CACHE"