fuzzy-pokedex/pokeUpdate

19 lines
379 B
Plaintext
Raw Normal View History

2023-04-22 12:03:58 -05:00
#!/bin/bash
2023-04-22 17:31:05 -05:00
DATADIR="/usr/share/fuzzy-pokedex-dev"
2023-04-22 12:03:58 -05:00
declare -i WC
WC=$(pokemon-colorscripts -l | wc | awk '{print $1}' )
declare -i COUNT
COUNT="$WC"
for POKEMON in $(pokemon-colorscripts -l); do
2023-04-22 17:31:05 -05:00
pokeParse "$POKEMON" > "$DATADIR/$POKEMON"
2023-04-22 17:15:49 -05:00
((COUNT--))
PCTLEFT="$((COUNT*100/WC))"
PCTDONE="$((100-PCTLEFT))"
printf "\t%s - %s \t%s%%\n" "$COUNT" "$POKEMON" "$PCTDONE"
2023-04-22 12:03:58 -05:00
done