Skip to content

Commit 81c5c44

Browse files
authored
fix: curl retries (#1)
* retry http errors with curl
1 parent 79dacfe commit 81c5c44

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

action.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,31 @@ runs:
1414
1515
mkdir aim
1616
cd aim
17-
curl -L -o aim_ll.zip https://github.com/ArsenalRecon/Arsenal-Image-Mounter/raw/5961f922c5b99ec29acc4af4b60b909b402eed95/Command%20line%20applications/aim_ll.zip
17+
curl \
18+
--retry 5 \
19+
--retry-delay 5 \
20+
--fail \
21+
--retry-all-errors \
22+
-L \
23+
-C - \
24+
-o aim_ll.zip \
25+
https://github.com/ArsenalRecon/Arsenal-Image-Mounter/raw/5961f922c5b99ec29acc4af4b60b909b402eed95/Command%20line%20applications/aim_ll.zip
1826
echo "a628fd0bb4b1657b2b89fd8972937b4d9c4b1292ea16764208fa63fc0ce84d54 aim_ll.zip" | sha256sum --check
1927
# unzip properly extracts everything but warns that "aim_ll.zip appears to use backslashes as path separators"
2028
# it then exits with a non-zero status code. the warning is harmless, so we ignore it.
2129
unzip aim_ll.zip || true
2230
mkdir ~/bin
2331
mv x64/* ~/bin
2432
25-
curl -L -o DriverFiles.zip https://github.com/ArsenalRecon/Arsenal-Image-Mounter/raw/5961f922c5b99ec29acc4af4b60b909b402eed95/DriverSetup/DriverFiles.zip
33+
curl \
34+
--retry 5 \
35+
--retry-delay 5 \
36+
--fail \
37+
--retry-all-errors \
38+
-L \
39+
-C - \
40+
-o DriverFiles.zip \
41+
https://github.com/ArsenalRecon/Arsenal-Image-Mounter/raw/5961f922c5b99ec29acc4af4b60b909b402eed95/DriverSetup/DriverFiles.zip
2642
echo "cc03472b689f23b1c66d1764b7a12e7212146b5c1f70e2613666efcd93b97192 DriverFiles.zip" | sha256sum --check
2743
# like above
2844
unzip DriverFiles.zip -d DriverFiles || true

0 commit comments

Comments
 (0)