
4 Aug
2014
4 Aug
'14
8:01 p.m.
-----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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlPf5n4ACgkQ/NU+nXTHMtHWCQCgyujhD/41+ScAgJoExk1Orh6K 1W4AoPpDobecjBSdC93yNLpOlvDcY0cd =u6oR -----END PGP SIGNATURE-----