From 1148ffd9dd4c46bcfc4b065a17085b5caff550c5 Mon Sep 17 00:00:00 2001 From: Francisco Cabrera Date: Mon, 11 Sep 2023 09:11:08 -0700 Subject: [PATCH] Remove Update-SessionEnvironment dependency (#419) --- install.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install.ps1 b/install.ps1 index 316ab747..76f368f4 100644 --- a/install.ps1 +++ b/install.ps1 @@ -18,18 +18,17 @@ tar -xf "$INSTALL_DIR\$TAR" -C $INSTALL_DIR mv -Force "$INSTALL_DIR\release\$BINARY_NAME" $INSTALL_DIR ">>> EXTRACTED BINARY TAR." -Update-SessionEnvironment $PATH_CONTENT = [Environment]::GetEnvironmentVariable('path', 'User') if ($PATH_CONTENT -ne $null) { if ($PATH_CONTENT -split ';' -NotContains $INSTALL_DIR) { [Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable('Path', 'User') + ";$INSTALL_DIR" , [System.EnvironmentVariableTarget]::User) - Update-SessionEnvironment + $env:Path += ";$INSTALL_DIR" } } ">>> INSTALLED BINARY." rm -r -Force "$INSTALL_DIR\$TAR" rm -r -Force "$INSTALL_DIR\release\" -">>> CLEANED UP." +">>> CLEANED UP." \ No newline at end of file