diff options
author | Connor Lane Smith <cls@lubutu.com> | 2011-11-27 23:35:09 +0100 |
---|---|---|
committer | Connor Lane Smith <cls@lubutu.com> | 2011-11-27 23:35:09 +0100 |
commit | 8cc28cb4265b0c088ea909e58f42342b2214722e (patch) | |
tree | f456155017ed610333dcabd036702f0a363843bb /dmenu_run | |
parent | bb4424df072332243890714b055e978a5c70adf3 (diff) |
simplify stest
Diffstat (limited to 'dmenu_run')
-rwxr-xr-x | dmenu_run | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -5,10 +5,8 @@ if [ ! -d "`dirname "$CACHE"`" ]; then fi ( IFS=: - if ls -d $PATH | stest -q -n "$CACHE"; then - for dir in $PATH; do - ls $dir | stest -C $dir -fx - done | sort -u > "$CACHE" + if stest -dqr -n "$CACHE" $PATH; then + stest -flx $PATH | sort -u > "$CACHE" fi ) cmd=`dmenu "$@" < "$CACHE"` && exec sh -c "$cmd" |