瀏覽代碼

fixing windows

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

+ 2 - 1
scripts/netclient-install.ps1

@@ -40,7 +40,8 @@ new-module -name netclient-install -scriptblock {
     if (Test-Path -Path "C:\ProgramData\Netclient\bin\netclient.exe") {
         $outpath = "C:\ProgramData\Netclient\bin\netclient.exe";
     } else {
-        $outpath = Get-Location
+        curDir = Get-Location
+        $outpath = "$curDir/netclient.exe"
         Write-Host "'netclient.exe' is NOT installed. installing...";
         Write-Host "https://github.com/gravitl/netmaker/releases/download/$version/netclient.exe";
         $url = "https://github.com/gravitl/netmaker/releases/download/$version/netclient.exe"