Only process osu! settings if existent

This commit is contained in:
Manuel Thalmann 2023-07-02 18:46:06 +02:00
parent a736a62609
commit a93627fc25

View file

@ -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;
}
}