Skip to content

Commit

Permalink
refactor(core): remove old scoopdir support
Browse files Browse the repository at this point in the history
  • Loading branch information
Chawye Hsu authored and r15ch13 committed May 10, 2019
1 parent ee7d22a commit 89558f4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -838,18 +838,7 @@ function get_magic_bytes_pretty($file, $glue = ' ') {
# for all communication with api.github.com
Optimize-SecurityProtocol

# 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, (get_config 'rootPath'), "$env:USERPROFILE\scoop" | Select-Object -first 1

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

$globaldir = $env:SCOOP_GLOBAL, (get_config 'globalPath'), "$env:ProgramData\scoop" | Select-Object -first 1

# Note: Setting the SCOOP_CACHE environment variable to use a shared directory
Expand Down

0 comments on commit 89558f4

Please sign in to comment.