File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
mc/ZeroConf.package/ZeroConfVMVersionHeadlessScript.class/instance Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,18 @@ cd - > /dev/null
17
17
set -f
18
18
# run the VM and pass along all arguments as is' ' >> $VM_SCRIPT
19
19
20
+ echo "image_name=\\"\\$1\\"" >> $VM_SCRIPT
21
+ echo "shift" >> $VM_SCRIPT
22
+
23
+ # make sure we only substite $PHARO_VM but put "$DIR" in the script
24
+ echo -n "\\"\\$DIR\\"/\\"$PHARO_VM\\" \\"\\$image_name\\"" >> $VM_SCRIPT
25
+
20
26
# output the interactive option if the VM_SCRIPT name includes "ui"
21
27
if [[ "\{$VM_SCRIPT}" == *ui* ]]; then
22
- echo "image_name=\\"\\$1\\"" >> $VM_SCRIPT
23
- echo "shift" >> $VM_SCRIPT
24
- echo "image_arguments=\\"\\$@\\"" >> $VM_SCRIPT
25
- echo -n \\"\\$DIR\\"/\\"$PHARO_VM\\" >> $VM_SCRIPT
26
- echo " \\"\\$image_name\\" --interactive \\"\\$image_arguments\\"" >> $VM_SCRIPT
27
- else
28
- # make sure we only substite $PHARO_VM but put "$DIR" in the script
29
- echo -n \\"\\$DIR\\"/\\"$PHARO_VM\\" >> $VM_SCRIPT
30
- # forward all arguments unprocessed using $@
31
- echo " \\"\\$@\\"" >> $VM_SCRIPT
28
+ echo -n " --interactive" >> $VM_SCRIPT
32
29
fi
30
+ # forward all arguments unprocessed using $@
31
+ echo " \\"\\$@\\"" >> $VM_SCRIPT
33
32
34
33
# make the script executable
35
34
chmod +x $VM_SCRIPT
You can’t perform that action at this time.
0 commit comments