Deploy: exdev sync 2026-08-13 14:48:13

This commit is contained in:
bkyungee
2026-08-13 14:48:14 +09:00
parent fb4179eaa5
commit 493b07ec30
4 changed files with 54 additions and 1 deletions
+16
View File
@@ -61,4 +61,20 @@ if [[ -d "${ROOT_DIR}/chatbotApp-chatbot2.0-agent/public-ai" ]]; then
"${EXDEV_SSH}:${REMOTE_WT}/chatbotApp-chatbot2.0-agent/public-ai/"
fi
# Windows 체크아웃(core.autocrlf)에서 넘어온 CRLF 는 macOS 에서
# "/bin/sh^M: bad interpreter" 로 죽는다. 전송 후 실행 진입점만 LF 로 강제한다.
log "원격 실행 스크립트 LF 정규화..."
ssh -o BatchMode=yes "${EXDEV_SSH}" "bash -s" <<EOSSH
set -e
WT="${REMOTE_WT}"
for f in \$(find "\${WT}" -name gradlew -not -path '*/node_modules/*' 2>/dev/null) \
\$(find "\${WT}" -name '*.sh' -not -path '*/node_modules/*' 2>/dev/null); do
if head -c 4000 "\$f" | grep -q \$'\r'; then
tr -d '\r' < "\$f" > "\$f.lf" && mv "\$f.lf" "\$f"
echo " LF 변환: \$f"
fi
chmod +x "\$f" 2>/dev/null || true
done
EOSSH
log "✅ submodule rsync 완료"