aboutsummaryrefslogtreecommitdiff
path: root/dmenu_run
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2011-11-27 23:35:09 +0100
committerConnor Lane Smith <cls@lubutu.com>2011-11-27 23:35:09 +0100
commit8cc28cb4265b0c088ea909e58f42342b2214722e (patch)
treef456155017ed610333dcabd036702f0a363843bb /dmenu_run
parentbb4424df072332243890714b055e978a5c70adf3 (diff)
simplify stest
Diffstat (limited to 'dmenu_run')
-rwxr-xr-xdmenu_run6
1 files changed, 2 insertions, 4 deletions
diff --git a/dmenu_run b/dmenu_run
index a15df0f..e0a3e13 100755
--- a/dmenu_run
+++ b/dmenu_run
@@ -5,10 +5,8 @@ if [ ! -d "`dirname "$CACHE"`" ]; then
5fi 5fi
6( 6(
7 IFS=: 7 IFS=:
8 if ls -d $PATH | stest -q -n "$CACHE"; then 8 if stest -dqr -n "$CACHE" $PATH; then
9 for dir in $PATH; do 9 stest -flx $PATH | sort -u > "$CACHE"
10 ls $dir | stest -C $dir -fx
11 done | sort -u > "$CACHE"
12 fi 10 fi
13) 11)
14cmd=`dmenu "$@" < "$CACHE"` && exec sh -c "$cmd" 12cmd=`dmenu "$@" < "$CACHE"` && exec sh -c "$cmd"