wifictld/.ci/download_sdk.sh

12 lines
336 B
Bash
Raw Normal View History

OPWD=$PWD
mkdir tmp/sdk
cd tmp/sdk
2019-02-26 13:07:58 +01:00
curl "https://$SDK_HOST/$SDK_PATH/sha256sums" -sS -o sha256sums
curl "https://$SDK_HOST/$SDK_PATH/sha256sums.asc" -sS -o sha256sums.asc
gpg --with-fingerprint --verify sha256sums.asc sha256sums
rsync -av "$SDK_HOST::downloads/$SDK_PATH/$SDK_FILE" .
sha256sum -c --ignore-missing sha256sums
cd $OPWD