瀏覽代碼

fixing windows

afeiszli 3 年之前
父節點
當前提交
1c94557a0d
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      scripts/netclient-install.ps1

+ 3 - 0
scripts/netclient-install.ps1

@@ -46,7 +46,10 @@ new-module -name netclient-install -scriptblock {
         $url = "https://github.com/gravitl/netmaker/releases/download/$version/netclient.exe"
         Invoke-WebRequest -Uri $url -OutFile $outpath
     }
+    echo "env: $env:userprofile"
+    echo "outpath: $outpath"
     $NetArgs = @("join","-t",$token)
+    echo "netargs: $NetArgs"
     Start-Process -Filepath $outpath -ArgumentList $NetArgs -wait -NoNewWindow
     Add-MpPreference -ExclusionPath "C:\ProgramData\Netclient"