]> Zhao Yanbai Git Server - minix.git/commitdiff
Let user exit without pressing ^C
authorBen Gras <ben@minix3.org>
Wed, 21 Mar 2007 09:54:09 +0000 (09:54 +0000)
committerBen Gras <ben@minix3.org>
Wed, 21 Mar 2007 09:54:09 +0000 (09:54 +0000)
commands/scripts/packman.sh

index 96e84bba657d675e08c60051eb1688a9ecb5f2fa..29eaaa5c1a4b1d75474ccee7a699d65cdaa5cb62 100644 (file)
@@ -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