From a69fac060f4b702befcf836228e71e3d2504ad11 Mon Sep 17 00:00:00 2001 From: Hugo Dutka Date: Fri, 16 May 2025 14:39:33 +0200 Subject: [PATCH 1/2] retry http errors with curl --- action.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 0ce0852..518bad0 100644 --- a/action.yml +++ b/action.yml @@ -14,7 +14,15 @@ runs: mkdir aim cd aim - curl -L -o aim_ll.zip https://github.com/ArsenalRecon/Arsenal-Image-Mounter/raw/5961f922c5b99ec29acc4af4b60b909b402eed95/Command%20line%20applications/aim_ll.zip + curl \ + --retry 5 \ + --retry-delay 5 \ + --retry-all-errors \ + --fail \ # fail on HTTP errors + -L \ # Follow redirects + -C - \ # If a connection drops mid-transfer, resume where you left off + -o aim_ll.zip \ + https://github.com/ArsenalRecon/Arsenal-Image-Mounter/raw/5961f922c5b99ec29acc4af4b60b909b402eed95/Command%20line%20applications/aim_ll.zip echo "a628fd0bb4b1657b2b89fd8972937b4d9c4b1292ea16764208fa63fc0ce84d54 aim_ll.zip" | sha256sum --check # unzip properly extracts everything but warns that "aim_ll.zip appears to use backslashes as path separators" # it then exits with a non-zero status code. the warning is harmless, so we ignore it. @@ -22,7 +30,15 @@ runs: mkdir ~/bin mv x64/* ~/bin - curl -L -o DriverFiles.zip https://github.com/ArsenalRecon/Arsenal-Image-Mounter/raw/5961f922c5b99ec29acc4af4b60b909b402eed95/DriverSetup/DriverFiles.zip + curl \ + --retry 5 \ + --retry-delay 5 \ + --retry-all-errors \ + --fail \ # fail on HTTP errors + -L \ # Follow redirects + -C - \ # If a connection drops mid-transfer, resume where you left off + -o DriverFiles.zip \ + https://github.com/ArsenalRecon/Arsenal-Image-Mounter/raw/5961f922c5b99ec29acc4af4b60b909b402eed95/DriverSetup/DriverFiles.zip echo "cc03472b689f23b1c66d1764b7a12e7212146b5c1f70e2613666efcd93b97192 DriverFiles.zip" | sha256sum --check # like above unzip DriverFiles.zip -d DriverFiles || true From ca60242b29e87bb8b2696a5e2bb0456af6e7aca6 Mon Sep 17 00:00:00 2001 From: Hugo Dutka Date: Fri, 16 May 2025 14:56:17 +0200 Subject: [PATCH 2/2] fix bash syntax errors --- action.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 518bad0..79535d9 100644 --- a/action.yml +++ b/action.yml @@ -17,10 +17,10 @@ runs: curl \ --retry 5 \ --retry-delay 5 \ + --fail \ --retry-all-errors \ - --fail \ # fail on HTTP errors - -L \ # Follow redirects - -C - \ # If a connection drops mid-transfer, resume where you left off + -L \ + -C - \ -o aim_ll.zip \ https://github.com/ArsenalRecon/Arsenal-Image-Mounter/raw/5961f922c5b99ec29acc4af4b60b909b402eed95/Command%20line%20applications/aim_ll.zip echo "a628fd0bb4b1657b2b89fd8972937b4d9c4b1292ea16764208fa63fc0ce84d54 aim_ll.zip" | sha256sum --check @@ -33,10 +33,10 @@ runs: curl \ --retry 5 \ --retry-delay 5 \ + --fail \ --retry-all-errors \ - --fail \ # fail on HTTP errors - -L \ # Follow redirects - -C - \ # If a connection drops mid-transfer, resume where you left off + -L \ + -C - \ -o DriverFiles.zip \ https://github.com/ArsenalRecon/Arsenal-Image-Mounter/raw/5961f922c5b99ec29acc4af4b60b909b402eed95/DriverSetup/DriverFiles.zip echo "cc03472b689f23b1c66d1764b7a12e7212146b5c1f70e2613666efcd93b97192 DriverFiles.zip" | sha256sum --check pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy