fix: force removal of empty LastUsedSettings.json file

This commit is contained in:
Jeffrey
2026-08-12 16:40:26 +02:00
parent 25fb9f3725
commit b21be418cd
+1 -1
View File
@@ -510,7 +510,7 @@ if ($script:Params.ContainsKey("AppRemovalTarget")) {
# Remove LastUsedSettings.json file if it exists and is empty # Remove LastUsedSettings.json file if it exists and is empty
if ((Test-Path $script:SavedSettingsFilePath) -and ([String]::IsNullOrWhiteSpace((Get-content $script:SavedSettingsFilePath)))) { if ((Test-Path $script:SavedSettingsFilePath) -and ([String]::IsNullOrWhiteSpace((Get-content $script:SavedSettingsFilePath)))) {
Remove-Item -Path $script:SavedSettingsFilePath -recurse Remove-Item -Path $script:SavedSettingsFilePath -Force
} }
# Default to CLI mode for deployment-targeted parameters. # Default to CLI mode for deployment-targeted parameters.