Only process osu! settings if existent
This commit is contained in:
parent
a736a62609
commit
a93627fc25
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue