We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83ebf5c commit 2bf6492Copy full SHA for 2bf6492
scripts/install-hpe-provider-windows.ps1
@@ -27,7 +27,7 @@ $hpe_zip="terraform-provider-hpe_${version_number}_${os}_${arch}.zip"
27
$hpe=$hpe_zip -replace '.zip'
28
$hpe_dl_url="https://github.com/${repo}/releases/download/${VERSION}/${hpe_zip}"
29
30
-mkdir "$dest_dir"
+New-Item -ItemType Directory -Path "$dest_dir" -Force | Out-Null
31
Set-Location "$dest_dir"
32
33
try {
@@ -51,3 +51,5 @@ Get-ChildItem -Path $hpe -Recurse -File | Move-Item -Destination $dest_dir
51
Remove-Item $hpe_zip -Recurse -Force -ErrorAction SilentlyContinue
52
Remove-Item $hpe -Recurse -Force -ErrorAction SilentlyContinue
53
Write-Host Complete
54
+
55
+Set-Location "${users_pwd}"
0 commit comments