Fix bash syntax error in pipe execution

read 명령의 파이프 호환성 문제 수정:
- `< /dev/tty` 제거 (파이프 환경에서 오류 발생)
- `-p` 옵션을 별도 echo로 분리
- 에러 출력 억제로 안정성 향상

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude 2025-11-21 14:20:02 +00:00
parent 85c5f7f930
commit 59a10f48e5

View File

@ -312,7 +312,13 @@ restore_backup() {
start_vm() {
echo ""
log_info "VM ${TARGET_VMID}를 바로 시작하시겠습니까?"
read -t 10 -p "$(echo -e ${YELLOW}10초 내 입력하세요 (y/N):${NC}) " start_confirm < /dev/tty || start_confirm="N"
echo -e "${YELLOW}10초 내 입력하세요 (y/N):${NC} "
if read -t 10 start_confirm 2>/dev/null; then
:
else
start_confirm="N"
fi
echo ""
if [[ "$start_confirm" =~ ^[Yy]$ ]]; then