diff options
author | Max Illfelder <illfelder@users.noreply.github.com> | 2014-11-21 13:13:22 -0800 |
---|---|---|
committer | Max Illfelder <illfelder@users.noreply.github.com> | 2014-11-21 13:13:22 -0800 |
commit | c71d2df7d9ac9773537231104b8e8071afed76e7 (patch) | |
tree | e3d3df54250fb2c88353f69966c04d31f183581b | |
parent | 66dc1c96bd8c319da2597d7ac55604870e3c8143 (diff) | |
parent | e9cd957757e88fa220bc18c9d30ad26b1e0867ce (diff) | |
download | google-compute-image-packages-c71d2df7d9ac9773537231104b8e8071afed76e7.tar.gz |
Merge pull request #136 from akramer/master
Update fetch_script to give better diagnostics
-rwxr-xr-x | google-startup-scripts/usr/share/google/fetch_script | 2 |
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 |