mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-03 04:53:50 +00:00
Change to 755, fixes #176
This commit is contained in:
parent
25e71790c1
commit
7178b33807
@ -33,11 +33,11 @@ func InstallNps() {
|
|||||||
if _, err := copyFile(filepath.Join(common.GetAppPath(), "nps"), "/usr/local/bin/nps"); err != nil {
|
if _, err := copyFile(filepath.Join(common.GetAppPath(), "nps"), "/usr/local/bin/nps"); err != nil {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
} else {
|
} else {
|
||||||
os.Chmod("/usr/local/bin/nps", 0777)
|
os.Chmod("/usr/local/bin/nps", 0755)
|
||||||
log.Println("Executable files have been copied to", "/usr/local/bin/nps")
|
log.Println("Executable files have been copied to", "/usr/local/bin/nps")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
os.Chmod("/usr/bin/nps", 0777)
|
os.Chmod("/usr/bin/nps", 0755)
|
||||||
log.Println("Executable files have been copied to", "/usr/bin/nps")
|
log.Println("Executable files have been copied to", "/usr/bin/nps")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user