Skip to content

Commit

Permalink
修复版本号检测
Browse files Browse the repository at this point in the history
  • Loading branch information
justjavac committed Jun 15, 2020
1 parent 3259380 commit 10ebf53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ curl -fsSL https://x.deno.js.cn/install.sh | sh
**使用 PowerShell:**

```powershell
iwr https://x.deno.js.cn/install.ps1 -useb -outf install.ps1; .\install.ps1
# iwr https://x.deno.js.cn/install.ps1 -useb | iex
iwr https://x.deno.js.cn/install.ps1 -useb | iex
```

## 安装某个特定版本
Expand Down
2 changes: 1 addition & 1 deletion install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $ErrorActionPreference = 'Stop'
if ($v) {
$Version = "v${v}"
}
if ($args.Length -gt 1) {
if ($args.Length -eq 1) {
$Version = $args.Get(0)
}

Expand Down

0 comments on commit 10ebf53

Please sign in to comment.