diff options
author | Anselm R. Garbe <arg@suckless.org> | 2007-05-23 13:22:27 +0200 |
---|---|---|
committer | Anselm R. Garbe <arg@suckless.org> | 2007-05-23 13:22:27 +0200 |
commit | 8b633bf17de71ffec76b2413c23c01bb705c36b8 (patch) | |
tree | 9a5263b46d0533ec228e080f328c92f03a26a22a | |
parent | 64697cdd0c25ee19413a57d723c1bcaff883f122 (diff) |
applied Jukka's fix
-rw-r--r-- | config.mk | 2 | ||||
-rwxr-xr-x | dmenu_path | 10 |
2 files changed, 7 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | # dmenu version | 1 | # dmenu version |
2 | VERSION = 3.1 | 2 | VERSION = 3.2 |
3 | 3 | ||
4 | # Customize below to fit your system | 4 | # Customize below to fit your system |
5 | 5 | ||
@@ -3,20 +3,22 @@ CACHE=$HOME/.dmenu_cache | |||
3 | UPTODATE=1 | 3 | UPTODATE=1 |
4 | IFS=: | 4 | IFS=: |
5 | 5 | ||
6 | uptodate() { [ $UPTODATE -eq 1 ]; } | ||
7 | |||
6 | if test ! -f $CACHE | 8 | if test ! -f $CACHE |
7 | then | 9 | then |
8 | unset UPTODATE | 10 | UPTODATE=0 |
9 | fi | 11 | fi |
10 | 12 | ||
11 | if test $UPTODATE | 13 | if uptodate |
12 | then | 14 | then |
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 |
17 | fi | 19 | fi |
18 | 20 | ||
19 | if test ! $UPTODATE | 21 | if ! uptodate |
20 | then | 22 | then |
21 | for dir in $PATH | 23 | for dir in $PATH |
22 | do | 24 | do |