summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Illfelder <illfelder@users.noreply.github.com>2014-11-21 13:13:22 -0800
committerMax Illfelder <illfelder@users.noreply.github.com>2014-11-21 13:13:22 -0800
commitc71d2df7d9ac9773537231104b8e8071afed76e7 (patch)
treee3d3df54250fb2c88353f69966c04d31f183581b
parent66dc1c96bd8c319da2597d7ac55604870e3c8143 (diff)
parente9cd957757e88fa220bc18c9d30ad26b1e0867ce (diff)
downloadgoogle-compute-image-packages-c71d2df7d9ac9773537231104b8e8071afed76e7.tar.gz
Merge pull request #136 from akramer/master
Update fetch_script to give better diagnostics
-rwxr-xr-xgoogle-startup-scripts/usr/share/google/fetch_script2
1 files changed, 1 insertions, 1 deletions
diff --git a/google-startup-scripts/usr/share/google/fetch_script b/google-startup-scripts/usr/share/google/fetch_script
index 5286a06..262919f 100755
--- a/google-startup-scripts/usr/share/google/fetch_script
+++ b/google-startup-scripts/usr/share/google/fetch_script
@@ -85,7 +85,7 @@ function download_url_with_logfile() {
# Unauthenticated download of the object.
log "Downloading url from ${url} to ${dest} using curl"
curl --max-time "${CURL_TIMEOUT}" --retry "${CURL_RETRY_LIMIT}" \
- 2> "${logfile}" -o "${dest}" -- "${url}" && return 0;
+ 2>> "${logfile}" -o "${dest}" -- "${url}" && return 0;
log "Failed to download $url"
return 1