tools: exit setup script without prompt
PATCH 1/1 tools: exit setup script without prompt
Exit tools/setup.sh script without prompting "Press enter to continue".
The script can now be exited by typing the option number, "quit" or "q".
Signed-off-by John McNamara <[email protected]>
--- tools/setup.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)
tools/setup.sh +12 -2
@@ -57,6 +57,12 @@ quit() QUIT=$1 } +# Shortcut for quit. +q() +{ + quit +} + # # Sets up environmental variables for ICC. #
@@ -628,6 +634,10 @@ while [ "$QUIT" == "0" ]; do read our_entry echo "" ${OPTIONS[our_entry]} ${our_entry} - echo - echo -n "Press enter to continue ..."; read + + if [ "$QUIT" == "0" ] ; then + echo + echo -n "Press enter to continue ..."; read + fi + done
Signature · 1 line
1.8.1.4
Quoted 10 lines
From: dev [mailto:[email protected]] On Behalf Of John McNamara
Sent: Thursday, October 22, 2015 11:36 AM
To: [email protected]
Subject: [dpdk-dev] [PATCH] tools: exit setup script without promptExit
tools/setup.shscript without prompting "Press enter to continue".The script can now be exited by typing the option number, "quit" or "q".
Signed-off-by John McNamara <[email protected]>
Acked-by Harry van Haaren <[email protected]>
Thomas Monjalon
AppliedQuoted 7 lines
Quoted 5 lines
Exit
tools/setup.shscript without prompting "Press enter to continue".The script can now be exited by typing the option number, "quit" or "q".
Signed-off-by John McNamara <[email protected]>Acked-by Harry van Haaren <[email protected]>
Applied, thanks