From 321622a318ff581ac82bf2e72a555f630783d62f Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 2 Apr 2007 14:44:16 +0000 Subject: [PATCH] accept 'q' to exit. --- commands/scripts/packman.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ] -- 2.44.0