Skip to content

Commit f31375c

Browse files
committed
add Ignore error action
1 parent 9eab20e commit f31375c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

make.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function Extract-ZipFile {
1515
} else {
1616
Expand-Archive -Path "$zipFilePath" -DestinationPath "$destinationPath"
1717
}
18-
Remove-Item -Force "$zipFilePath"
18+
Remove-Item -Force "$zipFilePath" -ErrorAction Ignore
1919
}
2020

2121
function Compress-ToZipFile {
@@ -68,7 +68,7 @@ function Get-VIPManager {
6868
Invoke-WebRequest -Uri $VIP_REF -OutFile "$env:TEMP\vip.zip"
6969
Extract-ZipFile "$env:TEMP\vip.zip" "$MD"
7070
Rename-Item "$MD\vip-manager*" "vip-manager"
71-
Remove-Item "$MD\vip-manager\*.yml" -ErrorAction SilentlyContinue
71+
Remove-Item "$MD\vip-manager\*.yml" -ErrorAction SilentlyContinue -ErrorAction Ignore
7272
Copy-Item "src\vip.yaml" "$MD\vip-manager"
7373
Write-Host "`n--- VIP-MANAGER downloaded ---" -ForegroundColor green
7474
}
@@ -77,7 +77,7 @@ function Get-PostgreSQL {
7777
Write-Host "`n--- Download POSTGRESQL ---" -ForegroundColor blue
7878
Invoke-WebRequest -Uri $PGSQL_REF -OutFile "$env:TEMP\pgsql.zip"
7979
Extract-ZipFile "$env:TEMP\pgsql.zip" "$MD"
80-
Remove-Item -Recurse -Force "$MD\pgsql\pgAdmin 4", "$MD\pgsql\symbols"
80+
Remove-Item -Recurse -Force "$MD\pgsql\pgAdmin 4", "$MD\pgsql\symbols" -ErrorAction Ignore
8181
Write-Host "`n--- POSTGRESQL downloaded ---" -ForegroundColor green
8282
}
8383

@@ -86,7 +86,7 @@ function Get-Patroni {
8686
Invoke-WebRequest -Uri $PATRONI_REF -OutFile "$env:TEMP\patroni.zip"
8787
Extract-ZipFile "$env:TEMP\patroni.zip" "$MD"
8888
Rename-Item "$MD\patroni-*" "patroni"
89-
Remove-Item "$MD\patroni\postgres?.yml"
89+
Remove-Item "$MD\patroni\postgres?.yml" -ErrorAction Ignore
9090
Copy-Item "src\patroni.yaml" "$MD\patroni"
9191
Write-Host "`n--- PATRONI downloaded ---" -ForegroundColor green
9292
}

0 commit comments

Comments
 (0)