Skip to content

Commit 2bf6492

Browse files
committed
Fixing Windows test
1 parent 83ebf5c commit 2bf6492

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/install-hpe-provider-windows.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $hpe_zip="terraform-provider-hpe_${version_number}_${os}_${arch}.zip"
2727
$hpe=$hpe_zip -replace '.zip'
2828
$hpe_dl_url="https://github.com/${repo}/releases/download/${VERSION}/${hpe_zip}"
2929

30-
mkdir "$dest_dir"
30+
New-Item -ItemType Directory -Path "$dest_dir" -Force | Out-Null
3131
Set-Location "$dest_dir"
3232

3333
try {
@@ -51,3 +51,5 @@ Get-ChildItem -Path $hpe -Recurse -File | Move-Item -Destination $dest_dir
5151
Remove-Item $hpe_zip -Recurse -Force -ErrorAction SilentlyContinue
5252
Remove-Item $hpe -Recurse -Force -ErrorAction SilentlyContinue
5353
Write-Host Complete
54+
55+
Set-Location "${users_pwd}"

0 commit comments

Comments
 (0)