From a10b066d55c8187fa5eef2ae912bfed3838195f9 Mon Sep 17 00:00:00 2001 From: Fop Date: Sun, 7 Jul 2024 12:03:12 +1000 Subject: [PATCH] Fix regenerating thumbnails on systems where `true` is a shell builtin not a binary --- 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 7502d333..d27dc317 100755 --- a/scripts/gen_thumbnails.sh +++ b/scripts/gen_thumbnails.sh @@ -17,7 +17,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') - checksum=$(grep "$f_" "$STATIC_DIR"samples.sha256 || /bin/true) + checksum=$(grep "$f_" "$STATIC_DIR"samples.sha256 || true) if [ -n "$checksum" ] then echo "$checksum" | sha256sum -c --status || {