onboard: secrets-decrypt 자동 호출 추가

This commit is contained in:
root2 2026-05-30 03:42:01 +00:00
parent ecc0ec2e56
commit 5bc2b4562e

View File

@ -129,6 +129,12 @@ for REPO in "${REPOS[@]}"; do
fi fi
git clone "gitea:${ORG}/${REPO}.git" "$TARGET" || { echo "$REPO clone 실패"; continue; } git clone "gitea:${ORG}/${REPO}.git" "$TARGET" || { echo "$REPO clone 실패"; continue; }
echo "$REPO clone 완료 → $TARGET" echo "$REPO clone 완료 → $TARGET"
# secrets 자동 복호화 (age key 가 있으면)
if [ -x "$TARGET/scripts/secrets-decrypt.sh" ] && [ -f "$HOME/.config/washtime/age.key" ]; then
"$TARGET/scripts/secrets-decrypt.sh" 2>&1 | sed 's/^/ /'
elif [ -x "$TARGET/scripts/secrets-decrypt.sh" ]; then
echo " secrets-decrypt.sh 발견됨 — ~/.config/washtime/age.key 받은 후 ./scripts/secrets-decrypt.sh 실행하세요"
fi
fi fi
done done