aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-05-23 13:22:27 +0200
committerAnselm R. Garbe <arg@suckless.org>2007-05-23 13:22:27 +0200
commit8b633bf17de71ffec76b2413c23c01bb705c36b8 (patch)
tree9a5263b46d0533ec228e080f328c92f03a26a22a
parent64697cdd0c25ee19413a57d723c1bcaff883f122 (diff)
applied Jukka's fix
-rw-r--r--config.mk2
-rwxr-xr-xdmenu_path10
2 files changed, 7 insertions, 5 deletions
diff --git a/config.mk b/config.mk
index 18565ea..f4c2fed 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
1# dmenu version 1# dmenu version
2VERSION = 3.1 2VERSION = 3.2
3 3
4# Customize below to fit your system 4# Customize below to fit your system
5 5
diff --git a/dmenu_path b/dmenu_path
index e590a5c..e725ede 100755
--- a/dmenu_path
+++ b/dmenu_path
@@ -3,20 +3,22 @@ CACHE=$HOME/.dmenu_cache
3UPTODATE=1 3UPTODATE=1
4IFS=: 4IFS=:
5 5
6uptodate() { [ $UPTODATE -eq 1 ]; }
7
6if test ! -f $CACHE 8if test ! -f $CACHE
7then 9then
8 unset UPTODATE 10 UPTODATE=0
9fi 11fi
10 12
11if test $UPTODATE 13if uptodate
12then 14then
13 for dir in $PATH 15 for dir in $PATH
14 do 16 do
15 test $dir -nt $CACHE && unset UPTODATE 17 test $dir -nt $CACHE && { UPTODATE=0; break; }
16 done 18 done
17fi 19fi
18 20
19if test ! $UPTODATE 21if ! uptodate
20then 22then
21 for dir in $PATH 23 for dir in $PATH
22 do 24 do