fix: create patch fetch directories

This commit is contained in:
andrey271192
2026-06-11 19:03:08 +03:00
parent 13644f6991
commit 3831292330
2 changed files with 3 additions and 0 deletions

View File

@@ -195,6 +195,7 @@ EOF
# ── 6. PCA patches over onboarding scripts + server-side helpers ──
echo "[6/9] PCA patches (tunnel-pull, self-heal, watchdog, 403 fix)..."
fetch() {
mkdir -p "$(dirname "$2")"
if [ -n "$GH_TOKEN" ]; then
curl -fsSL -m20 -H "Authorization: token $GH_TOKEN" "$RAW/$1" -o "$2" && return 0
else