Skip to content

Commit 2340e4b

Browse files
authored
docs: fix powershell install commands (#235)
1 parent 082ea37 commit 2340e4b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/guide/quick-start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ wget https://xmake.io/shget.text -O - | bash
2121
```
2222

2323
```powershell [powershell]
24-
Invoke-Expression (Invoke-Webrequest 'https://xmake.io/psget.text' -UseBasicParsing).Content
24+
irm https://xmake.io/psget.text | iex
2525
```
2626

2727
:::
@@ -31,7 +31,7 @@ If you want to install a specific version or branch, you can append the version
3131
```sh
3232
curl -fsSL https://xmake.io/shget.text | bash -s dev
3333
curl -fsSL https://xmake.io/shget.text | bash -s v2.7.7
34-
Invoke-Expression (Invoke-Webrequest 'https://xmake.io/psget.text' -UseBasicParsing).Content v2.7.7
34+
& ([ScriptBlock]::Create((irm https://xmake.io/psget.text))) -version 2.7.7
3535
```
3636

3737
::: tip NOTE

docs/zh/guide/quick-start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ wget https://xmake.io/shget.text -O - | bash
2121
```
2222

2323
```powershell [powershell]
24-
Invoke-Expression (Invoke-Webrequest 'https://xmake.io/psget.text' -UseBasicParsing).Content
24+
irm https://xmake.io/psget.text | iex
2525
```
2626

2727
:::
@@ -31,7 +31,7 @@ Invoke-Expression (Invoke-Webrequest 'https://xmake.io/psget.text' -UseBasicPars
3131
```sh
3232
curl -fsSL https://xmake.io/shget.text | bash -s dev
3333
curl -fsSL https://xmake.io/shget.text | bash -s v2.7.7
34-
Invoke-Expression (Invoke-Webrequest 'https://xmake.io/psget.text' -UseBasicParsing).Content v2.7.7
34+
& ([ScriptBlock]::Create((irm https://xmake.io/psget.text))) -version 2.7.7
3535
```
3636

3737
::: tip 注意

0 commit comments

Comments
 (0)