Browse Source

fixing windows

afeiszli 3 năm trước cách đây
mục cha
commit
1c94557a0d
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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"