File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ async function provision(): Promise<string> {
44
44
45
45
wait ( "" ) . start ( ) . info ( `Authorization URL: ${ url } ` ) ;
46
46
let openCmd ;
47
+ const args = [ ] ;
47
48
// TODO(arnauorriols): use npm:open or deno.land/x/open when either is compatible
48
49
switch ( Deno . build . os ) {
49
50
case "darwin" : {
@@ -55,15 +56,18 @@ async function provision(): Promise<string> {
55
56
break ;
56
57
}
57
58
case "windows" : {
58
- openCmd = "start" ;
59
+ // Windows Start-Process is a cmdlet of PowerShell
60
+ openCmd = "PowerShell.exe" ;
61
+ args . push ( "Start-Process" ) ;
59
62
break ;
60
63
}
61
64
}
65
+ args . push ( url ) ;
62
66
let open ;
63
67
if ( openCmd !== undefined ) {
64
68
try {
65
69
open = new Deno . Command ( openCmd , {
66
- args : [ url ] ,
70
+ args,
67
71
stderr : "piped" ,
68
72
stdout : "piped" ,
69
73
} )
You can’t perform that action at this time.
0 commit comments