From b273eeec68bc3326b3bca734bf0a194c3afa9d46 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 24 Mar 2024 18:17:18 +0100 Subject: [PATCH] Skip unpacking of existing files --- scripts/Windows/Software/osu!/Manage.ps1 | 2 +- scripts/Windows/Software/reWASD/Manage.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Windows/Software/osu!/Manage.ps1 b/scripts/Windows/Software/osu!/Manage.ps1 index d7153149..b71885bf 100644 --- a/scripts/Windows/Software/osu!/Manage.ps1 +++ b/scripts/Windows/Software/osu!/Manage.ps1 @@ -22,7 +22,7 @@ $null = New-Module { choco install -y osu; $context.RemoveDesktopIcon("*osu*"); Write-Information "Restoring files"; - $context.Restore($context.SoftwareArchive($softwareName), $path, @("-aoa")); + $context.Restore($context.SoftwareArchive($softwareName), $path, @("-aos")); $configName = "osu!.$env:USERNAME.cfg"; Write-Information "Renaming user configuration to $configName"; Push-Location $path; diff --git a/scripts/Windows/Software/reWASD/Manage.ps1 b/scripts/Windows/Software/reWASD/Manage.ps1 index db0c5707..7b8db798 100644 --- a/scripts/Windows/Software/reWASD/Manage.ps1 +++ b/scripts/Windows/Software/reWASD/Manage.ps1 @@ -22,7 +22,7 @@ $null = New-Module { Start-Process -Wait -FilePath $file.FullName -ArgumentList "/S"; Write-Information "Restoring files"; - $context.Restore($context.SoftwareArchive($softwareName), $path); + $context.Restore($context.SoftwareArchive($softwareName), $path, @("-aos")); Write-Information "Removing desktop icon"; $context.RemoveDesktopIcon("*reWASD*");