Skip to content

Commit 112244a

Browse files
committed
fix(scripts): using curl -OJL to download zips
1 parent 67931d3 commit 112244a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

download-stdlib.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
curl -o master.zip https://github.com/ArkScript-lang/std/archive/refs/heads/master.zip
2-
unzip -oq master.zip "std-master/*.ark" -x "std-master/tests/*"
1+
curl https://github.com/ArkScript-lang/std/archive/refs/heads/master.zip -O -J -L
2+
unzip -oq std-master.zip "std-master/*.ark" -x "std-master/tests/*"
33

4-
rm master.zip
4+
rm std-master.zip
55
rm -rf .arkscript/lib/std/
66
mv std-master/ .arkscript/lib/std/
77

download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [[ $(echo -ne "$API_OUTPUT" | grep "status.*404") != "" ]]; then
3131
fi
3232

3333
ASSET_PATH=$(echo -ne "$API_OUTPUT" | grep "browser_download_url.*${ASSET}.zip" | cut -d : -f 2,3 | tr -d \" | tr -d " ")
34-
curl -o "${ASSET}.zip" "$ASSET_PATH"
34+
curl "$ASSET_PATH" -O -J -L
3535

3636
mkdir -p .arkscript
3737
unzip -oq "${ASSET}.zip" -d .arkscript

0 commit comments

Comments
 (0)