Add success notification for reloaded vagrants to build.sh [ci skip]
If a host finished provisioning successfully after a reload, it would not print the "success!" message. This commit fixes that. This is potentially what caused the problem in #135. [ci skip]
This commit is contained in:
		
							
								
								
									
										4
									
								
								build.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								build.sh
									
									
									
									
									
								
							| @@ -430,7 +430,9 @@ build_vagrant_hosts() { | |||||||
|       (echo >&2 "Something went wrong while attempting to build the $VAGRANT_HOST box.") |       (echo >&2 "Something went wrong while attempting to build the $VAGRANT_HOST box.") | ||||||
|       (echo >&2 "Attempting to reload and reprovision the host...") |       (echo >&2 "Attempting to reload and reprovision the host...") | ||||||
|       RETRY_STATUS=$(vagrant_reload_host "$VAGRANT_HOST") |       RETRY_STATUS=$(vagrant_reload_host "$VAGRANT_HOST") | ||||||
|       if [ "$RETRY_STATUS" -ne 0 ]; then |       if [ "$RETRY_STATUS" -eq 0 ]; then | ||||||
|  |         (echo >&2 "Good news! $VAGRANT_HOST was built successfully after a reload!") | ||||||
|  |       else | ||||||
|         (echo >&2 "Failed to bring up $VAGRANT_HOST after a reload. Exiting.") |         (echo >&2 "Failed to bring up $VAGRANT_HOST after a reload. Exiting.") | ||||||
|         exit 1 |         exit 1 | ||||||
|       fi |       fi | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Chris Long
					Chris Long