From 6d3e5fad4fb5bea68bc0f793b68c2963ca896ef5 Mon Sep 17 00:00:00 2001 From: Jared Haight <1220886+jaredhaight@users.noreply.github.com> Date: Sat, 31 Mar 2018 11:38:57 -0700 Subject: [PATCH] Changed Get-Item to Test-Item --- build.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.ps1 b/build.ps1 index d1ca61b..5eb83a9 100644 --- a/build.ps1 +++ b/build.ps1 @@ -82,7 +82,7 @@ function install_checker { function check_packer { #Check for packer at $PackerPath - if (!(Get-Item $PackerPath)) { + if (!(Test-Path $PackerPath)) { Write-Error "Packer not found at $PackerPath" Write-Output 'Re-run the script setting the PackerPath parameter to the location of packer' Write-Output "Example: build.ps1 -PackerPath 'C:\packer.exe'"