summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-08-14 16:54:25 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-08-14 16:54:25 -0400
commita3e647985f2c429c06613eedaf7824ff7cba5484 (patch)
tree6ff465b5d7ad4421d45a996c7404aa10aef24571
parentd4bbf0e2a40bcacd4b8325f0008ae2772bd1299c (diff)
osi-run: Fix quoting
-rwxr-xr-xosi-run4
1 files changed, 2 insertions, 2 deletions
diff --git a/osi-run b/osi-run
index c357410..c39e3b4 100755
--- a/osi-run
+++ b/osi-run
@@ -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.';;