diff --git a/profiles/base/build.sh b/profiles/base/build.sh index c769bd2..1df643f 100755 --- a/profiles/base/build.sh +++ b/profiles/base/build.sh @@ -73,7 +73,8 @@ fi for (( i=0; i<${#package_names[@]}; i++ )); do printf "Downloading %s " "${package_names[$i]}" printf "v%s... " "${package_versions[$i]}" - if eval curl -s --output-dir "tmp" -LO "${package_sources[$i]}"; then + # "-C -" will prevent curl from downloading files that have already been downloaded + if eval curl -C - -s --output-dir "tmp" -LO "${package_sources[$i]}"; then printf "%b\n" "$success_message" else printf "%b\n" "$error_message"