diff --git a/bin/provision_cf b/bin/provision_cf index 1eb8895f..66b8170f 100755 --- a/bin/provision_cf +++ b/bin/provision_cf @@ -18,7 +18,8 @@ main() { fetch_stemcell() { if [[ ! -e $STEMCELL_FILE ]] then - curl --progress-bar "${STEMCELL_SOURCE}/${STEMCELL_FILE}" > "$STEMCELL_FILE" + curl --continue-at - --progress-bar "${STEMCELL_SOURCE}/${STEMCELL_FILE}" -o "$STEMCELL_FILE.in_progress" + mv "$STEMCELL_FILE.in_progress" "$STEMCELL_FILE" fi }