From 8b633bf17de71ffec76b2413c23c01bb705c36b8 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Wed, 23 May 2007 13:22:27 +0200 Subject: applied Jukka's fix --- dmenu_path | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'dmenu_path') 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 -- cgit v1.2.3-13-gbd6f