summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdmenu_path3
1 files changed, 2 insertions, 1 deletions
diff --git a/dmenu_path b/dmenu_path
index 4c2a5b4..7f356f5 100755
--- a/dmenu_path
+++ b/dmenu_path
@@ -9,7 +9,8 @@ config="$configdir/dmenu_omitlist"
[ ! -e "$configdir" ] && mkdir -p "$configdir"
IFS=:
-if stest -dqr -n "$cache" $PATH; then
+
+if stest -dqr -n "$cache" $PATH || [ "$config" -nt "$cache" ]; then
stest -flx $PATH | sort -u | grep -wvF -f $config | tee "$cache"
else
cat "$cache"