summaryrefslogtreecommitdiffstats
path: root/core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt
diff options
context:
space:
mode:
authorSimon Rettberg2019-07-10 16:52:07 +0200
committerSimon Rettberg2019-07-10 16:52:07 +0200
commitf6f7848eaa5bdd69e03608fc2b9898eab3ce599b (patch)
tree21035ac8d7cb31873f9e8c61b2c5f7be79b1db8f /core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt
parent[mltk] minor formatting (diff)
downloadmltk-f6f7848eaa5bdd69e03608fc2b9898eab3ce599b.tar.gz
mltk-f6f7848eaa5bdd69e03608fc2b9898eab3ce599b.tar.xz
mltk-f6f7848eaa5bdd69e03608fc2b9898eab3ce599b.zip
[run-virt/*] Make VIRTCMDOPTS an array for space safeness
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt')
-rwxr-xr-xcore/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt b/core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt
index 9d7020ed..a2d0f3cb 100755
--- a/core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt
+++ b/core/modules/run-virt/data/opt/openslx/vmchooser/vmchooser-run_virt
@@ -160,6 +160,9 @@ main() {
notify_user "Feature '$FEAT' nicht unterstützt"
fi
done
+ # Prepare array for the command line options
+ unset VIRTCMDOPTS
+ declare -a VIRTCMDOPTS
# The features should now be initialized, call the main 'run_plugin' function of the hypervisor
writelog "#################### Plugin run: $PLUGIN_ID ####################"
writelog "Calling 'run_plugin' of '$PLUGIN_ID'..."
@@ -174,9 +177,9 @@ main() {
cleanexit 1
fi
- writelog "VM command: ${VIRTCMD} ${VIRTCMDOPTS}"
+ writelog "VM command: ${VIRTCMD} ${VIRTCMDOPTS[*]}"
# This will start the VM (no eval needed!)
- ${VIRTCMD} ${VIRTCMDOPTS}
+ "${VIRTCMD}" "${VIRTCMDOPTS[@]}"
writelog "Virtualizer exited with '$?'. Bye."