summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohn McNamara <john.mcnamara@intel.com>2015-10-22 11:36:27 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-12-04 16:32:00 +0100
commit992ecdd839abaadda629295ed565e08618cc060c (patch)
tree4cacbe90b0d13fad3c595638d51ea67a8a403102 /tools
parent6100ed584939ec2095d719e82c8363e01f5a04c1 (diff)
downloaddpdk-992ecdd839abaadda629295ed565e08618cc060c.zip
dpdk-992ecdd839abaadda629295ed565e08618cc060c.tar.gz
dpdk-992ecdd839abaadda629295ed565e08618cc060c.tar.xz
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 <john.mcnamara@intel.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/setup.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/setup.sh b/tools/setup.sh
index 5a8b2f3..fbd3853 100755
--- a/tools/setup.sh
+++ b/tools/setup.sh
@@ -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