Files
salmanoff/distro/ubuntuCore/scripts/fetch-model.sh
T

13 lines
413 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# Refresh the signed reference model from snapcore/models on GitHub.
set -euo pipefail
UC_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
MODEL="${UC_ROOT}/models/ubuntu-core-26-amd64.model"
URL="https://raw.githubusercontent.com/snapcore/models/master/ubuntu-core-26-amd64.model"
mkdir -p "$(dirname "$MODEL")"
curl -fsSL -o "$MODEL" "$URL"
echo "Updated: $MODEL"
head -15 "$MODEL"