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:
Juan Cruz Viotti 2017-05-10 19:28:12 -04:00 committed by GitHub
parent 159cc24e78
commit 66547c5abd

View File

@ -19,7 +19,7 @@
set -u
set -e
./scripts/build/check-dependency.sh wget
./scripts/build/check-dependency.sh curl
function usage() {
echo "Usage: $0"
@ -64,7 +64,7 @@ if [ "$ARGV_OPERATING_SYSTEM" == "win32" ]; then
FILENAME="$FILENAME.exe"
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 \
-u "$DOWNLOADS_BASEURL/$FILENAME" \