mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-09-25 14:56:17 +00:00
refactor(core): Remove hard-coded path
This commit is contained in:
+1
-1
@@ -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'"
|
||||
|
||||
Reference in New Issue
Block a user