wifictld/.ci/download_sdk.sh

11 lines
357 B
Bash
Raw Normal View History

2019-02-26 20:37:30 +01:00
#!/bin/sh
mkdir $CI_PROJECT_DIR/cache/
cd $CI_PROJECT_DIR/cache/
2019-02-26 12:11:03 +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" .
2019-02-26 20:37:30 +01:00
sha256sum -c --ignore-missing sha256sums