From: Ben Gras Date: Wed, 21 Mar 2007 09:54:09 +0000 (+0000) Subject: Let user exit without pressing ^C X-Git-Tag: v3.1.3~38 X-Git-Url: http://zhaoyanbai.com/repos/Bv9ARM.ch03.html?a=commitdiff_plain;h=70ab580d6b08cb70d815c54c00041ccd8cdd5777;p=minix.git Let user exit without pressing ^C --- diff --git a/commands/scripts/packman.sh b/commands/scripts/packman.sh index 96e84bba6..29eaaa5c1 100644 --- a/commands/scripts/packman.sh +++ b/commands/scripts/packman.sh @@ -121,8 +121,11 @@ do cd $TMPDIR highest="`wc -l $TMPF | awk '{ print $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? " + echo -n "Package(s) to install (RETURN to exit) ? " read packnolist + if [ "$packnolist" = "" ] + then exit 0 + fi if [ "$packnolist" = all ] then packnolist=1-$highest fi