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