diff options
Diffstat (limited to 'get.sh')
| -rwxr-xr-x | get.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,7 +3,7 @@ # I would like to interject for a moment. # text datei mit pokemons -FILE="test.txt" +FILE="POKEMON" # url zum (poke-)wiki WIKI="http://pokewiki.de/" @@ -39,7 +39,7 @@ for ((i=1;i<=$LINES;i++)); do POKEMON=$(cut -f2 -s "$FILE" | sed -n ${i}p) # teste, ob datei früher schon einmal heruntergeladen wurde - if [ -f $POKEMON.txt ]; then + if [ -f "$POKEMON.txt" ]; then read -p "$(tput setaf 1)Warnung! $(tput bold)$POKEMON.txt$(tput sgr0) $(tput setaf 1)existiert schon. Sollen die Informationen überschrieben werden?$(tput sgr0) [Y/n] " answer if [ "x$answer" == "xn" ]; then continue |
