aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-10-02 07:06:42 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-10-02 07:07:16 +0200
commitf21100fb02e219dc80fce7211c1f86174d4b1c03 (patch)
tree4fca8d30efea131401c4d6685101e1de07908ba3
parent25871839a2885f5479bdd7efd2e78ca0aa1a7e09 (diff)
downloadfiv-f21100fb02e219dc80fce7211c1f86174d4b1c03.tar.gz
fiv-f21100fb02e219dc80fce7211c1f86174d4b1c03.tar.xz
fiv-f21100fb02e219dc80fce7211c1f86174d4b1c03.zip
clean-up-thumbnail-cache.sh: local file URIs only
-rwxr-xr-xtools/clean-up-thumbnail-cache.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/clean-up-thumbnail-cache.sh b/tools/clean-up-thumbnail-cache.sh
index 490e317..94b68e5 100755
--- a/tools/clean-up-thumbnail-cache.sh
+++ b/tools/clean-up-thumbnail-cache.sh
@@ -6,7 +6,7 @@ pnginfo=$(pwd)/pnginfo cache_home=${XDG_CACHE_HOME:-$HOME/.cache}
for size in normal large x-large xx-large; do
cd "$cache_home/thumbnails/$size" 2>/dev/null || continue
find . -name '*.png' -print0 | PNGINFO_SKIP_TRAILING=1 xargs -0 "$pnginfo" \
- | jq -r '.info.texts."Thumb::URI"' | grep '^file://' \
+ | jq -r '.info.texts."Thumb::URI"' | grep '^file:///' \
| grep -v '^file:///run/media/[^/]*/NIKON/' \
| perl -MURI -MURI::Escape -MDigest::MD5 -lne \
'print Digest::MD5->new()->add($_)->hexdigest . ".png"