summaryrefslogtreecommitdiffstats
path: root/dmenu_run
diff options
context:
space:
mode:
authorGravatar Connor Lane Smith 2011-12-19 16:52:48 +0100
committerGravatar Connor Lane Smith 2011-12-19 16:52:48 +0100
commit6664e4233faa3d6b677a24196e9af4ac5b1920fd (patch)
treea81d46c660dfe173c54ae802a9f3c9cacd6399b2 /dmenu_run
parentcomment xdg fallback behaviour (diff)
parentstest: restore stream testing (diff)
merge stest -> default
Diffstat (limited to 'dmenu_run')
-rwxr-xr-xdmenu_run4
1 files changed, 2 insertions, 2 deletions
diff --git a/dmenu_run b/dmenu_run
index 976da46..052e51b 100755
--- a/dmenu_run
+++ b/dmenu_run
@@ -7,8 +7,8 @@ else
fi
(
IFS=:
- if [ "`ls -dt $PATH "$cache" | head -n 1`" != "$cache" ]; then
- lsx $PATH | sort -u | tee "$cache" | dmenu "$@"
+ if stest -dqr -n "$cache" $PATH; then
+ stest -flx $PATH | sort -u | tee "$cache" | dmenu "$@"
else
dmenu "$@" < "$cache"
fi