do not run honk as root

This commit is contained in:
Ted Unangst 2023-08-07 13:58:24 -04:00
parent 6b830f8fe5
commit 24017928ab
1 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,10 @@ func main() {
ilog = log.I
dlog = log.D
if os.Geteuid() == 0 {
elog.Fatalf("do not run honk as root")
}
args := flag.Args()
cmd := "run"
if len(args) > 0 {