diff options
author | Connor Lane Smith | 2011-11-19 19:54:55 +0100 |
---|---|---|
committer | Connor Lane Smith | 2011-11-19 19:54:55 +0100 |
commit | bb4424df072332243890714b055e978a5c70adf3 (patch) | |
tree | 269b5219179f964d31c6f84d5019bb1479f81800 /dmenu_run | |
parent | 8ac44eb75a3e2190aa7b89548956b2de33c5a6ce (diff) |
replace lsx with stest
Diffstat (limited to 'dmenu_run')
-rwxr-xr-x | dmenu_run | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -5,8 +5,10 @@ if [ ! -d "`dirname "$CACHE"`" ]; then fi ( IFS=: - if [ "`ls -dt $PATH "$CACHE" | head -n 1`" != "$CACHE" ]; then - lsx $PATH | sort -u > "$CACHE" + if ls -d $PATH | stest -q -n "$CACHE"; then + for dir in $PATH; do + ls $dir | stest -C $dir -fx + done | sort -u > "$CACHE" fi ) cmd=`dmenu "$@" < "$CACHE"` && exec sh -c "$cmd" |