PKGBUILD/main.go

28 lines
310 B
Go
Raw Normal View History

2018-11-07 19:07:15 +00:00
package main
import (
"log"
"os"
"os/user"
2019-05-12 09:57:53 +00:00
"github.com/volker-raschek/flucky/cmd"
2018-11-07 19:07:15 +00:00
)
var version string
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)
}
cmd.Execute(version)
}