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