Skip to content

Commit

Permalink
switch from ~/appdata/local/scoop to ~/scoop for new installation
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesampson committed Nov 1, 2016
1 parent 0c0cf9b commit fc54b2f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/core.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
$scoopdir = $env:SCOOP, "$env:LOCALAPPDATA\scoop" | select -first 1
# Note: The default directory changed from ~/AppData/Local/scoop to ~/scoop
# on 1 Nov, 2016 to work around long paths used by NodeJS.
# Old installations should continue to work using the old path.
# There is currently no automatic migration path to deal
# with updating old installations to the new path.
$scoopdir = $env:SCOOP, "$env:USERPROFILE\scoop" | select -first 1

$oldscoopdir = "$env:LOCALAPPDATA\scoop"
if((test-path $oldscoopdir) -and !$env:SCOOP) {
$scoopdir = $oldscoopdir
}

$globaldir = $env:SCOOP_GLOBAL, "$($env:programdata.tolower())\scoop" | select -first 1
$cachedir = "$scoopdir\cache" # always local

Expand Down

0 comments on commit fc54b2f

Please sign in to comment.