diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-14 16:54:25 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-14 16:54:25 -0400 |
commit | a3e647985f2c429c06613eedaf7824ff7cba5484 (patch) | |
tree | 6ff465b5d7ad4421d45a996c7404aa10aef24571 | |
parent | d4bbf0e2a40bcacd4b8325f0008ae2772bd1299c (diff) |
osi-run: Fix quoting
-rwxr-xr-x | osi-run | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -63,11 +63,11 @@ main() { main) arg_mountpoint=$(mktemp -dt -- "${0##*/}.XXXXXXXXXX") trap "rmdir -- ${arg_mountpoint@Q}" EXIT - sudo -- ./osi-mount --root -- "$arg_image" "$arg_mountpoint" "install -Dm755 /dev/stdin ${arg_mountpoint@Q}/etc/osi-run" + sudo -- ./osi-mount --root -- "$arg_image" "$arg_mountpoint" install -Dm755 /dev/stdin "$arg_mountpoint/etc/osi-run" "${arg_qemu[@]}" \ -name "osi-run $arg_image" \ -drive media=disk,format=raw,if=virtio,file="$arg_image" - sudo -- ./osi-mount --user -- "cat ${arg_mountpoint@Q}/var/log/osi-run.out; exit \$(cat ${arg_mountpoint@Q}/var/log/osi-run.status)" + sudo -- ./osi-mount --user -- "$arg_image" "$arg_mountpoint" sh -c "cat ${arg_mountpoint@Q}/var/log/osi-run.out; exit \$(cat ${arg_mountpoint@Q}/var/log/osi-run.status)" ;; *) error 1 'Internal error. The programmer writing this tool screwed up.';; |