fix off-by-one error in 'all'

This commit is contained in:
Ben Gras 2007-04-02 12:09:43 +00:00
parent 735d605330
commit c808aeb74e

View file

@ -118,7 +118,7 @@ do cd $TMPDIR
fi fi
) | sort -t'|' +1 | awk '{ n++; printf "%d|%s\n", n, $0 }' ) | sort -t'|' +1 | awk '{ n++; printf "%d|%s\n", n, $0 }'
) >$TMPF ) >$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 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 "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 to exit) ? "