From: Ben Gras Date: Mon, 2 Apr 2007 14:44:16 +0000 (+0000) Subject: accept 'q' to exit. X-Git-Tag: v3.1.3~22 X-Git-Url: http://zhaoyanbai.com/repos/man.ddns-confgen.html?a=commitdiff_plain;h=321622a318ff581ac82bf2e72a555f630783d62f;p=minix.git accept 'q' to exit. --- diff --git a/commands/scripts/packman.sh b/commands/scripts/packman.sh index 393e6a725..d2823b643 100644 --- a/commands/scripts/packman.sh +++ b/commands/scripts/packman.sh @@ -121,9 +121,9 @@ do cd $TMPDIR highest="`wc -l $TMPF | awk '{ print $1 - 1 }'`" awk -F'|' <$TMPF '{ printf "%3s %-15s %s\n", $1, $2, $3 }' | more echo "Format examples: '3', '3,6', '3-9', '3-9,11-15', 'all'" - echo -n "Package(s) to install (RETURN to exit) ? " + echo -n "Package(s) to install (RETURN or q to exit)? " read packnolist - if [ "$packnolist" = "" ] + if [ "$packnolist" = "" -o "$packnolist" = "q" ] then exit 0 fi if [ "$packnolist" = all ]