From ea0d11061bbb9b5ac49d08d375b50e6d0bb14453 Mon Sep 17 00:00:00 2001 From: Jared Haight <1220886+jaredhaight@users.noreply.github.com> Date: Sat, 31 Mar 2018 12:32:07 -0700 Subject: [PATCH] fix for 'not created' vs 'not_created' in vagrant status --- build.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.ps1 b/build.ps1 index b948b1a..d2d3ab1 100644 --- a/build.ps1 +++ b/build.ps1 @@ -231,7 +231,7 @@ function preflight_checks { Write-Verbose '[preflight_checks] Checking for vagrant instances..' $CurrentDir = Get-Location Set-Location "$DL_DIR\Vagrant" - if (($(vagrant status) | Select-String 'not created').Count -ne 4) { + if (($(vagrant status) | Select-String -Pattern "not[ _]created").Count -ne 4) { Write-Error 'You appear to have already created at least one Vagrant instance. This script does not support already created instances. Please either destroy the existing instances or follow the build steps in the README to continue.' break }