commit: 1a9f64b627d879a083191738d63c907bcd681066
parent ac3400a968c0f12f61633cdc19f22e62cc863b3c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 3 Nov 2020 02:46:00 +0100
bin/dmenu_path: Save only the basename
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/dmenu_path b/bin/dmenu_path
@@ -12,7 +12,7 @@ test -f "${cache}" || touch -d 1970-01-01T00:00:00 "${cache}"
IFS=:
if [ "$(find $PATH -type d -newer "$cache" 2>/dev/null | wc -l)" != "0" ]; then
- find $PATH -type f -perm -o=rx 2>/dev/null | sort -u | tee "$cache"
+ find $PATH -type f -perm -o=rx 2>/dev/null | while read file; do basename "$file"; done | sort -u | tee "$cache"
else
cat "$cache"
fi