about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnselm R. Garbe <[email protected]>2007-05-23 13:22:27 +0200
committerAnselm R. Garbe <[email protected]>2007-05-23 13:22:27 +0200
commit8b633bf17de71ffec76b2413c23c01bb705c36b8 (patch)
tree9a5263b46d0533ec228e080f328c92f03a26a22a
parentAdded tag 3.1 for changeset 8f0f917ac988 (diff)
downloaddmenu-8b633bf17de71ffec76b2413c23c01bb705c36b8.tar.gz
dmenu-8b633bf17de71ffec76b2413c23c01bb705c36b8.tar.bz2
dmenu-8b633bf17de71ffec76b2413c23c01bb705c36b8.zip
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 @@
 # dmenu version
-VERSION = 3.1
+VERSION = 3.2
 
 # Customize below to fit your system
 
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
 UPTODATE=1
 IFS=:
 
+uptodate() { [ $UPTODATE -eq 1 ]; }
+
 if test ! -f $CACHE 
 then
-	unset UPTODATE
+	UPTODATE=0
 fi
 
-if test $UPTODATE
+if uptodate
 then
 	for dir in $PATH
 	do
-		test $dir -nt $CACHE && unset UPTODATE
+		test $dir -nt $CACHE && { UPTODATE=0; break; }
 	done
 fi
 
-if test ! $UPTODATE
+if ! uptodate
 then
 	for dir in $PATH
 	do