aboutsummaryrefslogtreecommitdiff
path: root/dmenu_run
diff options
context:
space:
mode:
authorConnor Lane Smith2011-12-19 16:52:48 +0100
committerConnor Lane Smith2011-12-19 16:52:48 +0100
commit6664e4233faa3d6b677a24196e9af4ac5b1920fd (patch)
treea81d46c660dfe173c54ae802a9f3c9cacd6399b2 /dmenu_run
parent26c78cd95291d980f8978113cd6daa9841553c93 (diff)
parent6b1d658d1224cd108d64a6c340d47b66ad99816d (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