fix off-by-one error in 'all'
This commit is contained in:
parent
735d605330
commit
c808aeb74e
1 changed files with 1 additions and 1 deletions
|
@ -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) ? "
|
||||||
|
|
Loading…
Reference in a new issue