mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-26 09:02:57 +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") {
|
if !FileExists(netclientPath + "netclient") {
|
||||||
var err error
|
var err error
|
||||||
if ncutils.IsWindows() {
|
if ncutils.IsWindows() {
|
||||||
_, err = copy(".\\netclient\\netclient", netclientPath+"netclient")
|
_, err = copy(".\\netclient\\netclient", netclientPath+"\\netclient")
|
||||||
} else {
|
} else {
|
||||||
_, err = copy("./netclient/netclient", netclientPath+"netclient")
|
_, err = copy("./netclient/netclient", netclientPath+"/netclient")
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("could not create " + netclientPath + "netclient")
|
log.Println("could not create " + netclientPath + "/netclient")
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue