upgrade/install: 버전 같아도 캐시 우회로 항상 최신 bin 강제 갱신(no-cache+캐시버스터, hash -r). v0.3.1

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-08-27 17:59:24 +09:00
parent a577c6f45b
commit 949e7527cd
2 changed files with 17 additions and 6 deletions

View File

@ -8,7 +8,10 @@ BRANCH="${YAKCLOUD_STARTER_BRANCH:-main}"
DEST="${DEST:-$HOME/.local/bin}"
mkdir -p "$DEST"
echo "▸ yakcloud CLI 설치 → $DEST/yakcloud"
curl -fsSL "$REPO/raw/branch/$BRANCH/bin/yakcloud" -o "$DEST/yakcloud"
# 캐시 우회(no-cache + 캐시버스터) — 항상 최신 bin 획득.
BUST="$(date +%s 2>/dev/null || echo 0)"
curl -fsSL -H 'Cache-Control: no-cache' -H 'Pragma: no-cache' \
"$REPO/raw/branch/$BRANCH/bin/yakcloud?nocache=$BUST" -o "$DEST/yakcloud"
chmod +x "$DEST/yakcloud"
echo "✓ 완료. PATH 에 $DEST 가 있는지 확인하세요:"
echo ' export PATH="$HOME/.local/bin:$PATH"'