dmenu

my fork of dmenu
Index Commits Files Refs README LICENSE
commit 8b633bf17de71ffec76b2413c23c01bb705c36b8
parent 64697cdd0c25ee19413a57d723c1bcaff883f122
Author: Anselm R. Garbe <arg@suckless.org>
Date:   Wed, 23 May 2007 13:22:27 +0200

applied Jukka's fix
Diffstat:
Mconfig.mk | 2+-
Mdmenu_path | 10++++++----
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git 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
@@ -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