Skip to content

Commit

Permalink
Fix regenerating thumbnails on systems where true is a shell builti…
Browse files Browse the repository at this point in the history
…n not a binary
  • Loading branch information
Fop authored and florianfesti committed Jul 16, 2024
1 parent 95bb918 commit a10b066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gen_thumbnails.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {
Expand Down

0 comments on commit a10b066

Please sign in to comment.