applied Jukka's fix
This commit is contained in:
parent
64697cdd0c
commit
8b633bf17d
2 changed files with 7 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
# dmenu version
|
# dmenu version
|
||||||
VERSION = 3.1
|
VERSION = 3.2
|
||||||
|
|
||||||
# Customize below to fit your system
|
# Customize below to fit your system
|
||||||
|
|
||||||
|
|
10
dmenu_path
10
dmenu_path
|
@ -3,20 +3,22 @@ CACHE=$HOME/.dmenu_cache
|
||||||
UPTODATE=1
|
UPTODATE=1
|
||||||
IFS=:
|
IFS=:
|
||||||
|
|
||||||
|
uptodate() { [ $UPTODATE -eq 1 ]; }
|
||||||
|
|
||||||
if test ! -f $CACHE
|
if test ! -f $CACHE
|
||||||
then
|
then
|
||||||
unset UPTODATE
|
UPTODATE=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $UPTODATE
|
if uptodate
|
||||||
then
|
then
|
||||||
for dir in $PATH
|
for dir in $PATH
|
||||||
do
|
do
|
||||||
test $dir -nt $CACHE && unset UPTODATE
|
test $dir -nt $CACHE && { UPTODATE=0; break; }
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test ! $UPTODATE
|
if ! uptodate
|
||||||
then
|
then
|
||||||
for dir in $PATH
|
for dir in $PATH
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in a new issue