typos and other errors

This commit is contained in:
Eric Lay 2023-04-17 00:50:45 -05:00
parent 24de6c8e26
commit 3e2c17ff98
1 changed files with 5 additions and 5 deletions

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
### Help ### Help
Help() { help() {
echo -e "\nUse fzf to search and Pokemon stats\n" echo -e "\nUse fzf to search Pokemon stats\n"
echo -e "Can optionally search by name" echo -e "Can optionally search by name"
echo -e "EXAMPLE\n\tfuzzy-pokedex [pokemon name]\n" echo -e "EXAMPLE\n\tfuzzy-pokedex [pokemon name]\n"
echo -e "OPTIONS" echo -e "OPTIONS"
@ -12,7 +12,7 @@ Help() {
} }
### Pokedex viewer using pokemon-colorscripts and fzf ### Pokedex viewer using pokemon-colorscripts and fzf
pokedex() { fuzzy_pokedex() {
pokemon-colorscripts -l | pokemon-colorscripts -l |
fzf +m -s -i \ fzf +m -s -i \
--cycle \ --cycle \
@ -44,7 +44,7 @@ update_pokeData() {
} }
if [[ ! "$1" =~ ^- ]]; then if [[ ! "$1" =~ ^- ]]; then
pokedex fuzzy_pokedex "$1"
else else
for opt in "$@"; do for opt in "$@"; do
case $opt in case $opt in
@ -52,7 +52,7 @@ else
update_pokeData update_pokeData
;; ;;
-h|--help) -h|--help)
Help help
;; ;;
-*) -*)
echo "Invalid Usage" echo "Invalid Usage"