Create a download stamp only if wget succeeds.
authorPiotr Esden-Tempski <piotr@esden.net>
Tue, 14 Jun 2011 22:21:51 +0000 (15:21 -0700)
committerPiotr Esden-Tempski <piotr@esden.net>
Tue, 14 Jun 2011 22:21:51 +0000 (15:21 -0700)
summon-arm-toolchain

index b005afc..0fd7a1a 100755 (executable)
@@ -215,8 +215,7 @@ esac
 function fetch {
     if [ ! -e ${STAMPS}/$1.fetch ]; then
         log "Downloading $1 sources..."
-        wget -c --no-passive-ftp $2
-        touch ${STAMPS}/$1.fetch
+        wget -c --no-passive-ftp $2 && touch ${STAMPS}/$1.fetch
     fi
 }