-
Notifications
You must be signed in to change notification settings - Fork 904
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(GH-7) Do not reinstall bin files if no old path
- Loading branch information
1 parent
7280b39
commit 046eb38
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -107,7 +107,7 @@ Creating Chocolatey folders if they do not already exist. | |||||
$realModule = Join-Path $chocolateyPath "helpers\chocolateyInstaller.psm1" | ||||||
Import-Module "$realModule" -Force | ||||||
|
||||||
if (-not $allowInsecureRootInstall) { | ||||||
if (-not $allowInsecureRootInstall -and (Test-Path($defaultChocolateyPathOld))) { | ||||||
Upgrade-OldChocolateyInstall $defaultChocolateyPathOld $chocolateyPath | ||||||
Install-ChocolateyBinFiles $chocolateyPath $chocolateyExePath | ||||||
} | ||||||
|
@@ -225,7 +225,7 @@ param( | |||||
Copy-Item "$chocolateyPathOld\lib\*" "$chocolateyPath\lib" -force -recurse | ||||||
|
||||||
$from = "$chocolateyPathOld\bin" | ||||||
$to ="$chocolateyPath\bin" | ||||||
$to = "$chocolateyPath\bin" | ||||||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ferventcoder
Author
Member
|
$to ="$chocolateyPath\bin" | |
$exclude = @("choco.exe", "chocolatey.exe", "cinst.exe", "clist.exe", "cpack.exe", "cpush.exe", "cuninst.exe", "cup.exe", "cver.exe", "RefreshEnv.cmd") |
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
Slightly perplexing here.... ?