]> git.armaanb.net Git - dmenu.git/blobdiff - dmenu_path
only match links
[dmenu.git] / dmenu_path
index 59fe64d2acc6c1fa8b90c3b8bcd06ba95eacf104..1b1b241d9aaeaa03058d4ac143f6169ba732b56d 100755 (executable)
@@ -3,7 +3,7 @@ CACHE=$HOME/.dmenu_cache
 IFS=:
 
 if ! test -f "$CACHE" || find $PATH -type d -newer "$CACHE" | grep -q .; then
-       find -L $PATH -type f \( -perm -1 -o -perm -10 -o -perm -100 \) | sed 's/.*\///' | sort -u > "$CACHE"
+       find $PATH ! -type d \( -perm -1 -o -perm -10 -o -perm -100 \) | sed 's/.*\///' | sort -u > "$CACHE"
 fi
 
 cat "$CACHE"