summaryrefslogtreecommitdiff
path: root/run-bootstrap-in-chroot
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-02-21 15:25:17 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2012-02-21 17:01:02 +0000
commit913e365bfa29cf1769a2923211f29215b20badf4 (patch)
tree54d0a5fdf21e7f170134b6cf1856ff7817ebcf4d /run-bootstrap-in-chroot
parent647f3134ab4d9335bca10b10b6cfbefadf4c0677 (diff)
downloadmorph-913e365bfa29cf1769a2923211f29215b20badf4.tar.gz
builder.py: use sh -c instead of writing a script
Putting the commands in a file made it more difficult to tell what happened in scripts, until the self.msg was added. After then it made the commands more difficult to reproduce So if it can safely be done in a single command it should be more readable. This approach uses sh -c to cd then evaluate the remaining options The command is 'cd "$1" && shift && eval "$@"', then passes the command as arguments to the shell script, so the program does not need to do any escaping of strings. If the commands were a list of strings instead of a quoted string then it would be a bit safer, but less flexible for use.
Diffstat (limited to 'run-bootstrap-in-chroot')
0 files changed, 0 insertions, 0 deletions