File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ on run argv
4
4
set vmName to ""
5
5
set cpuCount to 0
6
6
set memorySize to 0
7
- set additionalNotes to ""
7
+ set vmNotes to ""
8
8
9
9
-- Parse arguments
10
10
repeat with i from 2 to (count argv)
@@ -16,7 +16,7 @@ on run argv
16
16
else if currentArg is " --memory" then
17
17
set memorySize to item (i + 1 ) of argv
18
18
else if currentArg is " --notes" then
19
- set additionalNotes to item (i + 1 ) of argv
19
+ set vmNotes to item (i + 1 ) of argv
20
20
end if
21
21
end repeat
22
22
@@ -39,10 +39,9 @@ on run argv
39
39
set memory of config to memorySize
40
40
end if
41
41
42
- -- Append to the notes if --notes is provided
43
- if additionalNotes is not "" then
44
- set currentNotes to notes of config
45
- set notes of config to currentNotes & " \n " & additionalNotes
42
+ -- Set the notes if --notes is provided (existing notes will be overwritten)
43
+ if vmNotes is not "" then
44
+ set notes of config to vmNotes
46
45
end if
47
46
48
47
-- Save the configuration
You can’t perform that action at this time.
0 commit comments