mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-10 15:14:22 +08:00
fixing windows
This commit is contained in:
parent
ccbd6f90f7
commit
d4001f6a4d
2 changed files with 4 additions and 2 deletions
BIN
netclient/netclient.syso
Normal file
BIN
netclient/netclient.syso
Normal file
Binary file not shown.
|
@ -1,4 +1,6 @@
|
|||
new-module -name netclient-install -scriptblock {
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
function Quit {
|
||||
param(
|
||||
$Text
|
||||
|
@ -24,7 +26,7 @@ new-module -name netclient-install -scriptblock {
|
|||
Invoke-WebRequest -Uri $url -OutFile $outpath
|
||||
$args = @("Comma","Separated","Arguments")
|
||||
$procWG = Start-Process -Filepath "$env:userprofile\Downloads\wireguard-installer.exe" -ArgumentList $args
|
||||
if ($procWG -eq $null) {}
|
||||
if ($procWG -eq $null) {
|
||||
Start-Sleep -Seconds 5
|
||||
} else {
|
||||
$procWG.WaitForExit()
|
||||
|
@ -53,7 +55,7 @@ new-module -name netclient-install -scriptblock {
|
|||
}
|
||||
$NetArgs = @("join","-t",$token)
|
||||
$procNC = Start-Process -Filepath $outpath -ArgumentList $NetArgs
|
||||
if ($procNC -eq $null) {}
|
||||
if ($procNC -eq $null) {
|
||||
Start-Sleep -Seconds 5
|
||||
} else {
|
||||
$procNC.WaitForExit()
|
||||
|
|
Loading…
Add table
Reference in a new issue