-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
F. J. Blanco wrote:
Perhaps a suggestion, a little change here:
CHROOT=`grep "^chroot" $file|sed "s;.*= *;;"`
Adding a space filter:
CHROOT=`grep "^chroot" $file|sed "s;.*= *;;" | tr -d " "`
In fact the parameters can contain "=" or or spaces. Only trailing spaces are removed.
Consequently, the line should be more like:
CHROOT=$(grep -i '^[[:space:]]*chroot[[:space:]]*=' $file | sed 's;[^=]*=[[:space:]]*(.*[[:graph:]]).*;\1;')
Mike