]> git.armaanb.net Git - dmenu.git/commitdiff
applied Jukka's fix
authorAnselm R. Garbe <arg@suckless.org>
Wed, 23 May 2007 11:22:27 +0000 (13:22 +0200)
committerAnselm R. Garbe <arg@suckless.org>
Wed, 23 May 2007 11:22:27 +0000 (13:22 +0200)
config.mk
dmenu_path

index 18565eac3245014d5d45589060f96b200b9dce73..f4c2fed5e4fbd5447fe316d547a2bd8644dfac51 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
 # dmenu version
-VERSION = 3.1
+VERSION = 3.2
 
 # Customize below to fit your system
 
index e590a5c835c5612fde380271b374d86cb80c15fc..e725ede43beff1c161d2e04ca10336d9939f2283 100755 (executable)
@@ -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