pinosaur
/
dmenu.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b633bf
)
made dmenu_path the way anydot proposed in response to Jukka
author
Anselm R. Garbe
<arg@suckless.org>
Wed, 23 May 2007 20:13:46 +0000
(22:13 +0200)
committer
Anselm R. Garbe
<arg@suckless.org>
Wed, 23 May 2007 20:13:46 +0000
(22:13 +0200)
dmenu_path
patch
|
blob
|
history
diff --git
a/dmenu_path
b/dmenu_path
index
e725ede
..
cd43748
100755
(executable)
--- a/
dmenu_path
+++ b/
dmenu_path
@@
-1,22
+1,15
@@
#!/bin/sh
CACHE=$HOME/.dmenu_cache
-UPTODATE=1
IFS=:
-uptodate() { [ $UPTODATE -eq 1 ]; }
-
-if test ! -f $CACHE
-then
- UPTODATE=0
-fi
-
-if uptodate
-then
- for dir in $PATH
- do
- test $dir -nt $CACHE && { UPTODATE=0; break; }
- done
-fi
+uptodate() {
+ test ! -f $CACHE && return 1
+ for dir in $PATH
+ do
+ test $dir -nt $CACHE && return 1
+ done
+ return 0
+}
if ! uptodate
then