mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-08 16:22:15 -04:00
common/powershell: fix dropped error
This commit is contained in:
parent
0f9c3e2cb4
commit
f808d1d968
1 changed files with 3 additions and 1 deletions
|
|
@ -112,7 +112,9 @@ func IsPowershellAvailable() (bool, string, error) {
|
|||
|
||||
func (ps *PowerShellCmd) getPowerShellPath() (string, error) {
|
||||
powershellAvailable, path, err := IsPowershellAvailable()
|
||||
|
||||
if err != nil {
|
||||
log.Fatalf("IsPowershellAvailable: %v", err)
|
||||
}
|
||||
if !powershellAvailable {
|
||||
log.Fatal("Cannot find PowerShell in the path")
|
||||
return "", err
|
||||
|
|
|
|||
Loading…
Reference in a new issue