Skip to content

Commit 6b24efc

Browse files
committed
fix(install): support PowerShell strict mode
close #40
1 parent cd8b5c6 commit 6b24efc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/scripts/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
$ErrorActionPreference = 'Stop'
77

8-
$Version = if ($v) {
8+
$Version = if (Test-Path Variable:v) {
99
$v
1010
}
1111
elseif ($args.Length -eq 1) {

0 commit comments

Comments
 (0)