Skip to content

Commit abc9ff6

Browse files
committed
fix #278 not invoking method on nonexistent env variable data
Signed-off-by: Matt Wrock <[email protected]>
1 parent 2e8aca8 commit abc9ff6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

BuildScripts/setup.ps1

-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ function PersistBoxStarterPathToEnvironmentVariable($variableName, $boxstarterPa
101101
$userValues = [environment]::getfolderpath("mydocuments")
102102
$userValues +="\WindowsPowerShell\Modules"
103103
}
104-
$userValues = $userValues.Replace(';;',';')
105104
[Environment]::SetEnvironmentVariable($variableName, $userValues, 'User')
106105

107106
$value = [Environment]::GetEnvironmentVariable($variableName, 'Machine')
@@ -118,7 +117,6 @@ function PersistBoxStarterPathToEnvironmentVariable($variableName, $boxstarterPa
118117
$values ="$boxstarterPath"
119118
}
120119

121-
$values = $values.Replace(';;',';')
122120
[Environment]::SetEnvironmentVariable($variableName, $values, 'Machine')
123121
$varValue = Get-Content env:\$variableName
124122
$varValue = "$boxstarterPath;$varValue"

0 commit comments

Comments
 (0)