Skip to content

Commit

Permalink
Use call operator instead of Invoke-Expression
Browse files Browse the repository at this point in the history
Signed-off-by: Phani Sajja <[email protected]>
  • Loading branch information
sajjaphani committed Nov 1, 2024
1 parent 09e8dca commit 1c815f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/plan-build-ps1/bin/hab-plan-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand Down

0 comments on commit 1c815f8

Please sign in to comment.