zoa zoa zoa help help help
Jes Olson j3s@c3f.net
Fri, 30 Sep 2022 17:21:12 -0500
1 files changed,
7 insertions(+),
3 deletions(-)
jump to
M
main.go
→
main.go
@@ -14,9 +14,9 @@
func main() { // git vars var branch string - if os.Geteuid() != 0 { - fmt.Println("! you are running zoa as a non-root user. not ideal tbh. !") - } + // if os.Geteuid() != 0 { + // fmt.Println("! you are running zoa as a non-root user. not ideal tbh. !") + // } if len(os.Args) < 2 { printUsage() }@@ -25,6 +25,9 @@ branch = os.Args[2]
} path := os.Args[1] + if path == "-h" || path == "--help" || path == "help" { + printUsage() + } gitMode := git.GitMode(path) if gitMode {@@ -44,6 +47,7 @@ // TODO: this writer is responsible for the random stdout
// maybe save the stdout for debug mode somehow main := filepath.Join(utils.ZoaRoot, "main") + utils.BluePrintln("(✿◠‿◠) zoa") shell.RunScript(main) }