also sprach Andrew Pollock <apollock@debian.org> [2004.10.25.0020 +0200]:
> - # Loop until the correct amount of active devices has been selected
> - while [ "${SELECTED}" -ne "${DEV_COUNT}" ]; do
> + # Loop until at least one device has been selected
> + until [ "${SELECTED}" -gt "0" -a "${SELECTED}" -le "${DEV_COUNT}" ];
I wish people would start using [[/]], which are a lot better for
scripting with variables:
> + until [ "${SELECTED}" -gt "0" -a "${SELECTED}" -le "${DEV_COUNT}" ];
until [[ $SELECTED -gt 0 ]] && [[ $SELECTED -le $DEV_COUNT ]];
--
Please do not CC me when replying to lists; I read them!
.''`. martin f. krafft <madduck@debian.org>
: :' : proud Debian developer, admin, and user
`. `'`
`- Debian - when you have better things to do than fixing a system
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
Attachment:
signature.asc
Description: Digital signature