From 7178b3380720e910d283036a8d39879a94105515 Mon Sep 17 00:00:00 2001 From: ffdfgdfg Date: Fri, 16 Aug 2019 10:48:48 +0800 Subject: [PATCH] Change to 755, fixes #176 --- lib/install/install.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/install/install.go b/lib/install/install.go index 5b2a515..6bd20d4 100644 --- a/lib/install/install.go +++ b/lib/install/install.go @@ -33,11 +33,11 @@ func InstallNps() { if _, err := copyFile(filepath.Join(common.GetAppPath(), "nps"), "/usr/local/bin/nps"); err != nil { log.Fatalln(err) } 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") } } else { - os.Chmod("/usr/bin/nps", 0777) + os.Chmod("/usr/bin/nps", 0755) log.Println("Executable files have been copied to", "/usr/bin/nps") }