File tree 1 file changed +1
-18
lines changed
1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -75,26 +75,9 @@ function Setup-NuGet {
75
75
$nugetUrl = $repoConfiguration.Requirements.Nuget.Url
76
76
Invoke-WebRequest - Uri $nugetUrl - OutFile $nugetPath
77
77
78
- Add-ToSystemPath - installPath $installPath
79
-
80
78
Write-Host " Nuget Installation and configuration completed successfully!"
81
79
}
82
80
83
- function Add-ToSystemPath {
84
- param ([string ]$installPath )
85
- $path = [Environment ]::GetEnvironmentVariable(" Path" , [EnvironmentVariableTarget ]::User)
86
-
87
- if ($path -notlike " *$installPath *" ) {
88
- $newPath = " $path ;$installPath "
89
- [Environment ]::SetEnvironmentVariable(" Path" , $newPath , [EnvironmentVariableTarget ]::User)
90
- # Update the current session's PATH environment variable
91
- $env: Path += " ;$installPath "
92
- Write-Host " Path added to user PATH: $installPath "
93
- } else {
94
- Write-Host " Path already exists in user PATH: $installPath "
95
- }
96
- }
97
-
98
81
function Get-RepositoryConfiguration () {
99
82
$repoConfigFile = Join-Path $repositoryRootPath ' repoConfiguration.json'
100
83
@@ -234,4 +217,4 @@ function Get-RepositoryRootPath () {
234
217
return $rootPath
235
218
}
236
219
237
- $repositoryRootPath = Get-RepositoryRootPath
220
+ $repositoryRootPath = Get-RepositoryRootPath
You can’t perform that action at this time.
0 commit comments