refactor(core): Remove hard-coded path

This commit is contained in:
Richard Kuhnt
2019-05-10 12:16:36 +02:00
parent e9004e126b
commit 445d4fdee2
+1 -1
View File
@@ -21,7 +21,7 @@ $cachedir = $env:SCOOP_CACHE, "$scoopdir\cache" | Select-Object -first 1
$configHome = $env:XDG_CONFIG_HOME, "$env:USERPROFILE\.config" | Select-Object -First 1
$configFile = "$configHome\scoop\config.json"
if ((Test-Path "$env:USERPROFILE\.scoop") -and !(Test-Path $configFile)) {
New-Item -ItemType Directory "$env:USERPROFILE\.config\scoop" -ErrorAction Ignore | Out-Null
New-Item -ItemType Directory (Split-Path -Path $configFile) -ErrorAction Ignore | Out-Null
Move-Item "$env:USERPROFILE\.scoop" $configFile
warn "Scoops configurations has been migrated from '~/.scoop'"
warn "to '$configFile'"