mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-08-21 23:26:42 +00:00
fix: force removal of empty LastUsedSettings.json file
This commit is contained in:
+1
-1
@@ -510,7 +510,7 @@ if ($script:Params.ContainsKey("AppRemovalTarget")) {
|
||||
|
||||
# Remove LastUsedSettings.json file if it exists and is empty
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user