Comment 0 for bug 1076409

Revision history for this message
Robie Basak (racb) wrote :

From a checkout of maas trunk, if I run:

sudo http_proxy=http://<proxy>:3128/ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/ubuntu/maas/bin:/home/ubuntu/maas/scripts MAAS_PROVISIONING_SETTINGS=/home/ubuntu/maas/etc/pserv.yaml scripts/maas-import-pxe-

then I get the error:

/home/ubuntu/maas/scripts/maas-import-squashfs: line 47: RELEASES: unbound variable

This happens because maas-import-squashfs sets "set -o nounset" but then uses a '[ -z "$RELEASES" ]' test on line 47.

Workaround (and possibly a proper fix) is to change the test on line 47 to '[ -z "${RELEASES:-}" ]'. Though this then led me to bug 1074167.