Only process osu! settings if existent

This commit is contained in:
Manuel Thalmann 2023-07-02 18:46:06 +02:00
parent 659ac771ee
commit dac2fdc6f5

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