From 494a02552001c9ef64bc85bb4a426544ba3d1e11 Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Tue, 14 Jun 2011 15:21:51 -0700 Subject: [PATCH] Create a download stamp only if wget succeeds. --- summon-arm-toolchain | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 } -- 2.30.2