File tree Expand file tree Collapse file tree 4 files changed +231
-179
lines changed Expand file tree Collapse file tree 4 files changed +231
-179
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,8 @@ proc wait_and_enter {} {
183183#######################
184184# Start the installer #
185185#######################
186- spawn php installer.php star_wars
186+ set env(VORTEX_INSTALLER_PROMPT_BUILD_NOW) 0
187+ spawn php installer.php --destination=star_wars
187188
188189# Wait for the welcome screen and let it proceed
189190expect {
@@ -235,13 +236,13 @@ while {1} {
235236 after 2000
236237 safe_send "\r"
237238 }
238- "─┘" {
239- wait_and_enter
240- }
241239 "Finished installing Vortex" {
242240 # Installation completed, break out of loop
243241 break
244242 }
243+ "─┘" {
244+ wait_and_enter
245+ }
245246 timeout {
246247 puts "Timeout during installation"
247248 break
@@ -251,7 +252,22 @@ while {1} {
251252 break
252253 }
253254 }
254- # sleep 1
255+ }
256+
257+ # Handle the final "Run the site build now?" prompt separately
258+ # Default is "No" via VORTEX_INSTALLER_PROMPT_BUILD_NOW=0 env var
259+ expect {
260+ "Run the site build now?" {
261+ after 2000
262+ # Just press Enter to accept the default (No)
263+ safe_send "\r"
264+ }
265+ timeout {
266+ puts "Timeout waiting for build prompt"
267+ }
268+ eof {
269+ puts "End of file before build prompt"
270+ }
255271}
256272
257273expect eof
You can’t perform that action at this time.
0 commit comments