From 59a10f48e5e16ae32f001dae97215750b42c05aa Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 21 Nov 2025 14:20:02 +0000 Subject: [PATCH] Fix bash syntax error in pipe execution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit read 명령의 파이프 호환성 문제 수정: - `< /dev/tty` 제거 (파이프 환경에서 오류 발생) - `-p` 옵션을 별도 echo로 분리 - 에러 출력 억제로 안정성 향상 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- pbs_auto_restore_103_to_203.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pbs_auto_restore_103_to_203.sh b/pbs_auto_restore_103_to_203.sh index 660bd27..f4b285c 100755 --- a/pbs_auto_restore_103_to_203.sh +++ b/pbs_auto_restore_103_to_203.sh @@ -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