-
Committer:
Scott Moser
-
Date:
2014-07-08 22:01:27 UTC
-
Revision ID:
smoser@ubuntu.com-20140708220127-cgsb15xuj0srebf9
maas-cloudimg2ephemeral: general cleanup, run self in chroot
Rather than running something like:
chroot $mp sh -c 'some-long-code-here'
Now we run:
chroot $mp bash -s < "$0"
The benefit is that the code can now easily use other functions
such as 'debug', and also get syntax highlighting.