diff options
author | Ricardo (XenGi) Band | 2019-04-11 00:03:05 +0200 |
---|---|---|
committer | Ricardo (XenGi) Band | 2019-04-11 00:03:05 +0200 |
commit | e8c3f2340148c6ff8210967a40bd6a809d1e3258 (patch) | |
tree | fee713861a999516e04a56b4a0ef54223afbd734 | |
parent | 536301cfaa5611733f9c1566aeb5f4e58c9c12e3 (diff) | |
download | aur-e8c3f2340148c6ff8210967a40bd6a809d1e3258.tar.gz |
fix pokeapi call
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = pokeshell pkgdesc = Displays pokemons in your shell pkgver = 1.0.0 - pkgrel = 5 + pkgrel = 6 install = pokeshell.install arch = any license = MIT @@ -7,7 +7,7 @@ _lastpokemon=151 pkgname=pokeshell pkgver=1.0.0 -pkgrel=5 +pkgrel=6 pkgdesc="Displays pokemons in your shell" arch=(any) license=('MIT') @@ -20,7 +20,7 @@ build() { for _i in `seq $_firstpokemon 1 $_lastpokemon` ; do printf "Generating Pokemon #$_i" # download pokemon image - curl -s https://pokeapi.co/media/img/$_i.png -o $_i.png + curl -sL https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/$_i.png -o $_i.png printf "." # trim image convert $_i.png -trim -resize ${_maxwidth}x$(($_maxheight * 2))\> $_i.png |