From: Piotr Esden-Tempski Date: Tue, 14 Jun 2011 22:21:51 +0000 (-0700) Subject: Create a download stamp only if wget succeeds. X-Git-Url: https://git.gag.com/?p=fw%2Fcortex-toolchain;a=commitdiff_plain;h=494a02552001c9ef64bc85bb4a426544ba3d1e11 Create a download stamp only if wget succeeds. --- diff --git a/summon-arm-toolchain b/summon-arm-toolchain index b005afc..0fd7a1a 100755 --- a/summon-arm-toolchain +++ b/summon-arm-toolchain @@ -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 }