From 445d4fdee2847bb98c2ad0c428899f8da72de792 Mon Sep 17 00:00:00 2001 From: Richard Kuhnt Date: Mon, 18 Mar 2019 16:55:37 +0100 Subject: [PATCH] refactor(core): Remove hard-coded path --- lib/core.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core.ps1 b/lib/core.ps1 index 165bc9646..01e8b4316 100644 --- a/lib/core.ps1 +++ b/lib/core.ps1 @@ -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'"