Skip to content

Commit

Permalink
Merge pull request #7 from Djacket/v0.2.0-complements
Browse files Browse the repository at this point in the history
changed conditional check to download stock avatars.
  • Loading branch information
moeenz committed Aug 4, 2017
2 parents 27d1680 + f837ef5 commit f8c6de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-entrypoint-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if [ ! -d "/srv/media/stock" ]; then
curl -m 5 "https://api.adorable.io/avatars/200/$i.png" > "/srv/media/stock/$i.png";
done
else
if [[ "$(ls /srv/media/stock | wc -l)" != "$stock_avatars" ]]; then
if [[ "$(ls /srv/media/stock | wc -l)" < "$stock_avatars" ]]; then
for i in $(seq $stock_avatars $END); do
curl -m 5 "https://api.adorable.io/avatars/200/$i.png" > "/srv/media/stock/$i.png";
done
Expand Down

0 comments on commit f8c6de7

Please sign in to comment.