Fix the uptodate logic (uptodate if !find newer dirs than the cache). 53e92b5c
Kris Maglione · 2007-05-23 19:38 1 file(s) · +2 −2
dmenu_path +2 −2
9 9
uptodate() {                                                                       
10 10
	test -f $CACHE &&
11 11
		test "$(echo "$PATH")" = "$(sed 1q "$CACHE")" &&
12 -
		qfind $PATH -maxdepth 0 -newer $CACHE >/dev/null
12 +
		! qfind $PATH -maxdepth 0 -newer $CACHE >/dev/null
13 13
}
14 14
15 15
if ! uptodate
18 18
		echo "$PATH"
19 19
		qfind $PATH -type f -maxdepth 1 '(' -perm -u+x -o -perm -g+x -o -perm -o+x ')' |
20 20
			sed 's,.*/,,' | sort | uniq
21 -
	} > $CACHE.$pid
21 +
	}
22 22
	mv $CACHE.$pid $CACHE
23 23
fi
24 24