Skip to content

Commit

Permalink
Merge branch 'main' into feat/convert/composer
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice authored Jun 27, 2024
2 parents 570482c + 556e1b1 commit 8380361
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/usr/local/containerbase/utils/cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,13 @@ function download_file () {
retry=$((retry-1))
if ! log=$(containerbase-cli df "${url}" "${temp_folder}/${name}"); then
echo "Download failed: ${url}" >&2
echo "${log}" >&2
exit 1
if [ "${retry}" -le 0 ]; then
echo "Download failed: ${url}" >&2
echo "${log}" >&2
exit 1
fi
echo "Download failed, retrying" >&2
continue
fi;

# verify checksum if given
Expand Down

0 comments on commit 8380361

Please sign in to comment.