mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-26 00:53:23 +08:00
fixing paths
This commit is contained in:
parent
6815b9d3e5
commit
1fbf99b2a2
1 changed files with 3 additions and 3 deletions
|
@ -36,12 +36,12 @@ func InstallNetclient() error {
|
|||
if !FileExists(netclientPath + "netclient") {
|
||||
var err error
|
||||
if ncutils.IsWindows() {
|
||||
_, err = copy(".\\netclient\\netclient", netclientPath+"netclient")
|
||||
_, err = copy(".\\netclient\\netclient", netclientPath+"\\netclient")
|
||||
} else {
|
||||
_, err = copy("./netclient/netclient", netclientPath+"netclient")
|
||||
_, err = copy("./netclient/netclient", netclientPath+"/netclient")
|
||||
}
|
||||
if err != nil {
|
||||
log.Println("could not create " + netclientPath + "netclient")
|
||||
log.Println("could not create " + netclientPath + "/netclient")
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue