1
0
Fork 0

made dmenu_path the way anydot proposed in response to Jukka

This commit is contained in:
Anselm R. Garbe 2007-05-23 22:13:46 +02:00
parent 8b633bf17d
commit dfe95cb546

View file

@ -1,22 +1,15 @@
#!/bin/sh #!/bin/sh
CACHE=$HOME/.dmenu_cache CACHE=$HOME/.dmenu_cache
UPTODATE=1
IFS=: IFS=:
uptodate() { [ $UPTODATE -eq 1 ]; } uptodate() {
test ! -f $CACHE && return 1
if test ! -f $CACHE
then
UPTODATE=0
fi
if uptodate
then
for dir in $PATH for dir in $PATH
do do
test $dir -nt $CACHE && { UPTODATE=0; break; } test $dir -nt $CACHE && return 1
done done
fi return 0
}
if ! uptodate if ! uptodate
then then