diff options
author | Anselm R. Garbe | 2007-05-23 13:22:27 +0200 |
---|---|---|
committer | Anselm R. Garbe | 2007-05-23 13:22:27 +0200 |
commit | 8b633bf17de71ffec76b2413c23c01bb705c36b8 (patch) | |
tree | 9a5263b46d0533ec228e080f328c92f03a26a22a /dmenu_path | |
parent | 64697cdd0c25ee19413a57d723c1bcaff883f122 (diff) |
applied Jukka's fix
Diffstat (limited to 'dmenu_path')
-rwxr-xr-x | dmenu_path | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |