summaryrefslogtreecommitdiff
path: root/get.sh
diff options
context:
space:
mode:
authorThomas2014-09-16 15:28:36 +0200
committerThomas2014-09-16 15:28:36 +0200
commitb091d336d23e2333c4185254c047031c9ee1a6a8 (patch)
tree83b7cb0bed569a467382edbb8165946fc90f2461 /get.sh
parentc5b57cb2d751fae9041180806a585b5bbc325200 (diff)
downloadpokewiki-b091d336d23e2333c4185254c047031c9ee1a6a8.tar.gz
mes
Diffstat (limited to 'get.sh')
-rwxr-xr-xget.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/get.sh b/get.sh
index 174b323..ba7a68c 100755
--- a/get.sh
+++ b/get.sh
@@ -36,7 +36,7 @@ fi
for ((i=1;i<=$LINES;i++)); do
# lese pokemon aus der textdatei aus
- POKEMON=$(cat "$FILE" | cut -d ' ' -f 2 | sed -n ${i}p)
+ POKEMON=$(cat "$FILE" | cut -d ' ' -f 2 | sed -n ${i}p | cut -d ' ' -f 2)
# teste, ob datei früher schon einmal heruntergeladen wurde
if [ -f $POKEMON.txt ]; then