Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Check if directory is empty before unzipping

ZachTRiceb466732fd66d
diff --git a/.travis.yml b/.travis.yml
index c4c4cebb1..e26cf27b8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -48,9 +48,9 @@ matrix:
- source $HOME/venv/Scripts/activate
- DIR="c:/GTK"
- FILE="./temp/gtk.zip"
- - if ! [ -f "$FILE" ]; then then curl -o $FILE "http://ftp.gnome.org/pub/GNOME/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip" -O -J -L; fi
+ - if [ ! -f "$FILE" ]; then curl -o $FILE "http://ftp.gnome.org/pub/GNOME/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip" -O -J -L; fi
- if [ ! -d "$DIR" ]; then mkdir $DIR; fi
- - unzip $FILE -d $DIR
+ - if [ ! "$(ls -A $DIR)" ]; then unzip $FILE -d $DIR; fi
cache:
directories:
- c:/GTK
@@ -70,9 +70,9 @@ matrix:
- source $HOME/venv/Scripts/activate
- DIR="c:/GTK"
- FILE="./temp/gtk.zip"
- - if ! [ -f "$FILE" ]; then then curl -o $FILE "http://ftp.gnome.org/pub/GNOME/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip" -O -J -L; fi
+ - if [ ! -f "$FILE" ]; then curl -o $FILE "http://ftp.gnome.org/pub/GNOME/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip" -O -J -L; fi
- if [ ! -d "$DIR" ]; then mkdir $DIR; fi
- - unzip $FILE -d $DIR
+ - if [ ! "$(ls -A $DIR)" ]; then unzip $FILE -d $DIR; fi
cache:
directories:
- c:/GTK