diff options
author | Steph Enders <steph@senders.io> | 2024-06-24 12:55:19 -0400 |
---|---|---|
committer | Steph Enders <steph@senders.io> | 2024-06-24 12:57:54 -0400 |
commit | 8ece84ebc7be995a6b765f290a7920ddef66e358 (patch) | |
tree | b333dc3c58c724e3fe66c8cc57ed91a202d967ec | |
parent | eba1b09b5b72806d90dc255f3dba1eb573fa9c08 (diff) |
Regardless of how the dmenu_omit file is edited, if newer than the
cache regenerate the cache!
-rwxr-xr-x | dmenu_path | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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" |