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.
This commit is contained in:
parent
ec03162d15
commit
bf6e55bb36
|
@ -15,7 +15,7 @@ thumbnail() {
|
||||||
|
|
||||||
find "$STATIC_DIR" -name '*.jpg' ! -name '*-thumb.jpg' -type f | while read -r f
|
find "$STATIC_DIR" -name '*.jpg' ! -name '*-thumb.jpg' -type f | while read -r f
|
||||||
do
|
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)
|
checksum=$(grep "$f_" "$STATIC_DIR"samples.sha256 || /bin/true)
|
||||||
if [ -n "$checksum" ]
|
if [ -n "$checksum" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue