From bf6e55bb364bbb9f12f5f242dae821b3b0271240 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sun, 23 Apr 2023 12:14:52 +0200 Subject: [PATCH] gen_thumbnails.sh: Don't quote / as this is unnecessary and grep now complaints about it. Leaving the [] in for now even if we only quote one char (.) as I have the feeling we might need to quote more as soon as we encounter them. --- scripts/gen_thumbnails.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen_thumbnails.sh b/scripts/gen_thumbnails.sh index 54a314d..15d12a4 100755 --- a/scripts/gen_thumbnails.sh +++ b/scripts/gen_thumbnails.sh @@ -15,7 +15,7 @@ thumbnail() { find "$STATIC_DIR" -name '*.jpg' ! -name '*-thumb.jpg' -type f | while read -r f do - f_=$(echo "$f" | sed -E -e 's@([/.])@\\\1@g') + f_=$(echo "$f" | sed -E -e 's@([.])@\\\1@g') checksum=$(grep "$f_" "$STATIC_DIR"samples.sha256 || /bin/true) if [ -n "$checksum" ] then