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