summaryrefslogtreecommitdiff
path: root/get.sh
diff options
context:
space:
mode:
Diffstat (limited to 'get.sh')
-rwxr-xr-xget.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/get.sh b/get.sh
index a9fa46b..1c2398e 100755
--- a/get.sh
+++ b/get.sh
@@ -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