Skip to content

Commit 50ae13e

Browse files
authored
Merge pull request #10 from quixio/latest-version-ps
Fix version select not working for powershell
2 parents 022d69a + 3a9a668 commit 50ae13e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ To install the Quix CLI, users have multiple methods depending on their operatin
6161
- **Install with explicit version:**
6262

6363
```powershell
64-
$quixCliInstall = (iwr https://github.com/quixio/quix-cli/raw/main/install.ps1 -useb).Content; iex "$quixCliInstall {version}"
64+
$quixCliInstall = (iwr https://github.com/quixio/quix-cli/raw/main/install.ps1 -useb).Content; $version="{version}"; iex "$quixCliInstall"
6565
```
6666

6767
#### Notes

install.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ $downloadedZip = "$BinDir\${Target}.zip"
2828
# GitHub requires TLS 1.2
2929
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
3030

31-
$version = $args[0]
32-
3331
$ResourceUri = if (!$version) {
3432
"${githubUrl}/${owner}/${repoName}/releases/latest/download/${Target}.zip"
3533
} else {
3634
"${githubUrl}/${owner}/${repoName}/releases/download/${version}/${Target}.zip"
35+
$version = ""
3736
}
3837

3938

0 commit comments

Comments
 (0)