mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 18:56:31 +00:00
chore: replace wget
with curl
on node-static-entry-point-download.sh
(#1406)
See: https://github.com/resin-io/etcher/pull/1365 Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
parent
159cc24e78
commit
66547c5abd
@ -19,7 +19,7 @@
|
|||||||
set -u
|
set -u
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
./scripts/build/check-dependency.sh wget
|
./scripts/build/check-dependency.sh curl
|
||||||
|
|
||||||
function usage() {
|
function usage() {
|
||||||
echo "Usage: $0"
|
echo "Usage: $0"
|
||||||
@ -64,7 +64,7 @@ if [ "$ARGV_OPERATING_SYSTEM" == "win32" ]; then
|
|||||||
FILENAME="$FILENAME.exe"
|
FILENAME="$FILENAME.exe"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CHECKSUM=$(wget --no-check-certificate -O - "$DOWNLOADS_BASEURL/SHASUMS256.txt" | grep "$FILENAME" | cut -d ' ' -f 1)
|
CHECKSUM=$(curl --location "$DOWNLOADS_BASEURL/SHASUMS256.txt" | grep "$FILENAME" | cut -d ' ' -f 1)
|
||||||
|
|
||||||
./scripts/build/download-tool.sh \
|
./scripts/build/download-tool.sh \
|
||||||
-u "$DOWNLOADS_BASEURL/$FILENAME" \
|
-u "$DOWNLOADS_BASEURL/$FILENAME" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user