Overwrite existing files when unpacking osu!

This commit is contained in:
Manuel Thalmann 2024-03-24 18:09:22 +01:00
parent 17a18866f5
commit 87a83600db

View file

@ -22,7 +22,7 @@ $null = New-Module {
choco install -y osu; choco install -y osu;
$context.RemoveDesktopIcon("*osu*"); $context.RemoveDesktopIcon("*osu*");
Write-Information "Restoring files"; Write-Information "Restoring files";
$context.Restore($context.SoftwareArchive($softwareName), $path); $context.Restore($context.SoftwareArchive($softwareName), $path, @("-aoa"));
$configName = "osu!.$env:USERNAME.cfg"; $configName = "osu!.$env:USERNAME.cfg";
Write-Information "Renaming user configuration to $configName"; Write-Information "Renaming user configuration to $configName";
Push-Location $path; Push-Location $path;