From a93627fc256a57f20c87670aa72d8e1dd924ab73 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 2 Jul 2023 18:46:06 +0200 Subject: [PATCH] Only process osu! settings if existent --- scripts/Windows/Software/osu!/Manage.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/Windows/Software/osu!/Manage.ps1 b/scripts/Windows/Software/osu!/Manage.ps1 index 529918c5..983152ec 100644 --- a/scripts/Windows/Software/osu!/Manage.ps1 +++ b/scripts/Windows/Software/osu!/Manage.ps1 @@ -23,7 +23,11 @@ $null = New-Module { $configName = "osu!.$env:USERNAME.cfg"; Write-Information "Renaming user configuration to $configName"; Push-Location $path; - Rename-Item $genericConfigName $configName; + + if ((Test-Path $genericConfigName)) { + Rename-Item $genericConfigName $configName; + } + Pop-Location; } }