commit f4ffc500c2d246399433221904b6ab74cbacf4a9
parent ce7308f41d912747ce80fa24aa7fddf30810d97c
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Wed, 20 May 2015 23:50:50 +0200
oops
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/smallworld.sh b/smallworld.sh
@@ -1,12 +1,13 @@
#!/bin/bash
if [ ! -f airlines.dat ]
+then
wget -O airlines.dat 'https://sourceforge.net/p/openflights/code/HEAD/tree/openflights/data/airlines.dat?format=raw'
fi
if [ ! -f routes.dat ]
- wget -O routes.dat
- 'https://sourceforge.net/p/openflights/code/HEAD/tree/openflights/data/routes.dat?format=raw'
+then
+ wget -O routes.dat 'https://sourceforge.net/p/openflights/code/HEAD/tree/openflights/data/routes.dat?format=raw'
fi
cut -d ',' -f1,8 airlines.dat | tr -d '"' | tr ',' ' ' > active.dat