summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/build-support/fetchurl/builder.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/build-support/fetchurl/builder.sh b/pkgs/build-support/fetchurl/builder.sh
index 8a0c6f94a40..66792229585 100644
--- a/pkgs/build-support/fetchurl/builder.sh
+++ b/pkgs/build-support/fetchurl/builder.sh
@@ -34,6 +34,7 @@ tryDownload() {
        # keep this inside an if statement, since on failure it doesn't abort the script
        if $curl -C - --fail "$url" --output "$downloadedFile"; then
           success=1
+          break
        else
           curlexit=$?;
        fi