aboutsummaryrefslogtreecommitdiffstats
path: root/dmenu_run
diff options
context:
space:
mode:
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