simplify stest
This commit is contained in:
parent
bb4424df07
commit
8cc28cb426
3 changed files with 53 additions and 62 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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue