Created
August 24, 2024 11:23
-
-
Save subframe7536/6106a39c7fba2b44b50d53bcfd5c23d1 to your computer and use it in GitHub Desktop.
Powershell script to custom github mirror for bun download / upgrade
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param( | |
| [string]$githubMirror | |
| ) | |
| $installScript = irm bun.sh/install.ps1 | |
| if ($githubMirror) { | |
| $parsedURL = '$BaseURL = "https://' + $githubMirror + '/oven-sh/bun/releases"' | |
| $installScript = $installScript -replace '\$BaseURL = "https://github.com/oven-sh/bun/releases"', $parsedURL | |
| } | |
| iex $installScript |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bun_install.ps1 mirror.ghproxy.com/https://github.com