mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 15:28:05 +00:00
small improvement to not add the path if it's on the path already
This commit is contained in:
@@ -23,7 +23,9 @@ if($(Test-Path -Path $zipFile -PathType Leaf)) {
|
||||
|
||||
Expand-Archive -Path $zipFile -DestinationPath "${toDir}\${version}" -ErrorAction SilentlyContinue
|
||||
|
||||
$env:Path+=";${toDir}\${version}\ziti\"
|
||||
if(! $env:Path.Contains("${toDir}\${version}\ziti\")){
|
||||
$env:Path+=";${toDir}\${version}\ziti\"
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user