From 39b3a495acf71b17c8182f212e101947d55c5d25 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 8 Dec 2019 15:07:24 +0100 Subject: [PATCH] fix: remove root check Changes: - The owner of the flucky binary must be root. To grant access to the binary and third party libs, for example wire1, gpio or i2c, the binary must have a sticky bit --- main.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/main.go b/main.go index 796dde7..28418fe 100644 --- a/main.go +++ b/main.go @@ -3,10 +3,8 @@ package main import ( "log" "os" - "os/user" "github.com/Masterminds/semver" - "github.com/go-flucky/flucky/cmd" ) @@ -15,18 +13,6 @@ var ( ) func main() { - - user, err := user.Current() - - if err != nil { - panic(err) - } - - if user.Uid != "0" { - log.Println("you need to be root to run this command") - os.Exit(1) - } - sversion, err := semver.NewVersion(version) if err != nil { log.Printf("The sematic versioning is invalid: %v", version)