diff --git a/components/plan-build-ps1/bin/hab-plan-build.ps1 b/components/plan-build-ps1/bin/hab-plan-build.ps1 index e6caab4df1..e1b2aad04d 100644 --- a/components/plan-build-ps1/bin/hab-plan-build.ps1 +++ b/components/plan-build-ps1/bin/hab-plan-build.ps1 @@ -1755,8 +1755,7 @@ try { $deps = $env:HAB_STUDIO_INSTALL_PKGS -split ";" foreach ($dep in $deps) { Write-BuildLine "Installing $dep" - $cmd = "$HAB_BIN pkg install $dep" - Invoke-Expression $cmd + & $HAB_BIN pkg install "$dep" } }