diff -r f7a9a9776622 dmenu_path --- a/dmenu_path Wed May 18 17:01:59 2011 +0100 +++ b/dmenu_path Mon Jun 06 23:07:31 2011 +0200 @@ -2,8 +2,8 @@ CACHE=$HOME/.dmenu_cache IFS=: -if ! test -f "$CACHE" || find $PATH -type d -newer "$CACHE" | grep -q .; then - find $PATH ! -type d \( -perm -1 -o -perm -10 -o -perm -100 \) | sed 's/.*\///' | sort -u > "$CACHE" +if ! test -f "$CACHE" || find $PATH -type d -newer "$CACHE" -maxdepth 1 | grep -q .; then + find $PATH ! -type d \( -perm -1 -o -perm -10 -o -perm -100 \) -maxdepth 1 | sed 's/.*\///' | sort -u > "$CACHE" fi cat "$CACHE"