From c808aeb74e286ede55304393eace4fcb53c44e98 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 2 Apr 2007 12:09:43 +0000 Subject: [PATCH] fix off-by-one error in 'all' --- commands/scripts/packman.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/scripts/packman.sh b/commands/scripts/packman.sh index 29eaaa5c1..393e6a725 100644 --- a/commands/scripts/packman.sh +++ b/commands/scripts/packman.sh @@ -118,7 +118,7 @@ do cd $TMPDIR fi ) | sort -t'|' +1 | awk '{ n++; printf "%d|%s\n", n, $0 }' ) >$TMPF - highest="`wc -l $TMPF | awk '{ print $1 }'`" + 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) ? " -- 2.44.0