File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ convert(){
73
73
isGmax=" gmax"
74
74
fi
75
75
if [ " $isGmax " ]; then
76
- speciesName=$( curl -sS " https://pokeapi.co/api/v2/pokemon-species/$id " | jq -r ' .name' )
77
- pokemonID=$( curl -sS " https://pokeapi.co/api/v2/pokemon/$speciesName -$isGmax " | jq -r ' .id' 2> /dev/null)
76
+ speciesName=$( curl -sS " https://pokeapi.co/api/v2/pokemon-species/$id / " | jq -r ' .name' )
77
+ pokemonID=$( curl -sS " https://pokeapi.co/api/v2/pokemon/$speciesName -$isGmax / " | jq -r ' .id' 2> /dev/null)
78
78
if [ $? -ne 0 ]; then
79
79
echo " [-] Pkmn $speciesName -$isGmax wasn't found in PokeAPI"
80
80
else
@@ -87,7 +87,7 @@ convert(){
87
87
if [ $? -ne 0 ] || [ " $pokemonName " == ' null' ]; then
88
88
echo " [-] Form ${id} _${form} wasn't found in the JSON mapping"
89
89
else
90
- pokemonID=$( curl -sS " https://pokeapi.co/api/v2/pokemon/$pokemonName " | jq -r ' .id' 2> /dev/null)
90
+ pokemonID=$( curl -sS " https://pokeapi.co/api/v2/pokemon/$pokemonName / " | jq -r ' .id' 2> /dev/null)
91
91
if [ $? -ne 0 ]; then
92
92
echo " [-] Pkmn $pokemonName wasn't found in PokeAPI"
93
93
else
You can’t perform that action at this time.
0 commit comments