From patchwork Mon Mar 30 14:18:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Piotr Sieduszewski X-Patchwork-Id: 67444 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 28455A057B; Mon, 30 Mar 2020 18:03:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 06F5A1C045; Mon, 30 Mar 2020 18:03:12 +0200 (CEST) Received: from mx2.s137.superhost.pl (mx2.s137.superhost.pl [194.169.227.12]) by dpdk.org (Postfix) with ESMTP id A01C7FFA for ; Mon, 30 Mar 2020 16:19:12 +0200 (CEST) Received: from [188.147.105.218] (port=63822 helo=localhost.localdomain) by s137.superhost.pl with esmtpa (Exim 4.93) (envelope-from ) id 1jIvFu-000806-VK; Mon, 30 Mar 2020 16:19:11 +0200 From: Piotr Sieduszewski To: dev@dpdk.org Cc: Piotr Sieduszewski Date: Mon, 30 Mar 2020 16:18:57 +0200 Message-Id: <20200330141857.4681-1-piotr@dobra.waw.pl> X-Mailer: git-send-email 2.17.1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - s137.superhost.pl X-AntiAbuse: Original Domain - dpdk.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - dobra.waw.pl X-Get-Message-Sender-Via: s137.superhost.pl: authenticated_id: intel@tcy.pl X-Authenticated-Sender: s137.superhost.pl: intel@tcy.pl X-Mailman-Approved-At: Mon, 30 Mar 2020 18:03:10 +0200 Subject: [dpdk-dev] [PATCH] dpdk-setup.sh: Prevent infinite loop, when end of input. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Piotr Sieduszewski Signed-off-by: Piotr Sieduszewski --- usertools/dpdk-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usertools/dpdk-setup.sh b/usertools/dpdk-setup.sh index e5bbe9fee..c9660f950 100755 --- a/usertools/dpdk-setup.sh +++ b/usertools/dpdk-setup.sh @@ -593,7 +593,7 @@ while [ "$QUIT" == "0" ]; do OPTIONS[$OPTION_NUM]="quit" echo "" echo -n "Option: " - read our_entry + read our_entry || break echo "" ${OPTIONS[our_entry]} ${our_entry}