-if [[ $1 == "--download-mnist" ]]; then
- for f in train-images-idx3-ubyte train-labels-idx1-ubyte t10k-images-idx3-ubyte t10k-labels-idx1-ubyte; do
- if [[ ! -f "./$f" ]]; then
- echo "Could not find $f, downloading it."
- wget http://yann.lecun.com/exdb/mnist/$f.gz
- gunzip $f.gz
- fi
- done
+if [[ $1 ]]; then
+
+ if [[ $1 == "--download-mnist" ]]; then
+ for f in train-images-idx3-ubyte train-labels-idx1-ubyte t10k-images-idx3-ubyte t10k-labels-idx1-ubyte; do
+ if [[ ! -f "./$f" ]]; then
+ echo "Could not find $f, downloading it."
+ wget http://yann.lecun.com/exdb/mnist/$f.gz
+ gunzip $f.gz
+ fi
+ done
+ else
+
+ echo "Unknown option $1"
+ exit 1
+
+ fi