Merge branch 'master' into 1903_update
This commit is contained in:
@@ -74,6 +74,11 @@ function install_checker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function check_packer {
|
function check_packer {
|
||||||
|
# Check for packer using Get-Command
|
||||||
|
if ((Get-Command packer).Path) {
|
||||||
|
$PackerPath = (Get-Command packer).Path
|
||||||
|
Write-Output "Packer found at $PackerPath"
|
||||||
|
}
|
||||||
# Check for packer at $PackerPath
|
# Check for packer at $PackerPath
|
||||||
if (!(Test-Path $PackerPath)) {
|
if (!(Test-Path $PackerPath)) {
|
||||||
Write-Error "Packer not found at $PackerPath"
|
Write-Error "Packer not found at $PackerPath"
|
||||||
|
|||||||
Reference in New Issue
Block a user