]> Zhao Yanbai Git Server - minix.git/commitdiff
accept 'q' to exit.
authorBen Gras <ben@minix3.org>
Mon, 2 Apr 2007 14:44:16 +0000 (14:44 +0000)
committerBen Gras <ben@minix3.org>
Mon, 2 Apr 2007 14:44:16 +0000 (14:44 +0000)
commands/scripts/packman.sh

index 393e6a72578e807434b5d431a9cba9de4ef3fa14..d2823b643c50e69de6bf94a0ca99e25aca084a5f 100644 (file)
@@ -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 ]