wifictld/.ci/download_sdk.sh

11 lines
357 B
Bash
Executable File

#!/bin/sh
mkdir $CI_PROJECT_DIR/cache/
cd $CI_PROJECT_DIR/cache/
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