19 lines
606 B
Bash
Executable File
19 lines
606 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Sync GENERAL.txt from upstream davidtall/OpenWRT-CI
|
|
# This ensures we always get the latest upstream config
|
|
|
|
mkdir -p Config
|
|
|
|
# Optional: Pin to a specific commit for reproducible builds
|
|
# Set UPSTREAM_GENERAL_REF to a commit hash or branch name
|
|
# Default: 'main' (always latest)
|
|
UPSTREAM_GENERAL_REF="${UPSTREAM_GENERAL_REF:-main}"
|
|
|
|
curl -fsSL \
|
|
"https://raw.githubusercontent.com/davidtall/OpenWRT-CI/${UPSTREAM_GENERAL_REF}/Config/GENERAL.txt" \
|
|
-o "Config/GENERAL.upstream.txt"
|
|
|
|
echo "Synced GENERAL.txt from davidtall/OpenWRT-CI (${UPSTREAM_GENERAL_REF})"
|