Skip to content

Commit f837ef5

Browse files
committed
changed conditional check to download stock avatars. that could cause compatibilty issues with v0.1.0.
1 parent ac8e17d commit f837ef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-entrypoint-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if [ ! -d "/srv/media/stock" ]; then
3636
curl -m 5 "https://api.adorable.io/avatars/200/$i.png" > "/srv/media/stock/$i.png";
3737
done
3838
else
39-
if [[ "$(ls /srv/media/stock | wc -l)" != "$stock_avatars" ]]; then
39+
if [[ "$(ls /srv/media/stock | wc -l)" < "$stock_avatars" ]]; then
4040
for i in $(seq $stock_avatars $END); do
4141
curl -m 5 "https://api.adorable.io/avatars/200/$i.png" > "/srv/media/stock/$i.png";
4242
done

0 commit comments

Comments
 (0)