small pixel drawing of a pufferfish zoa

zoa zoa zoa help help help
Jes Olson j3s@c3f.net
Fri, 30 Sep 2022 17:21:12 -0500
commit

7a8ed144df4454996f2b4dcaf0169718b63a3e86

parent

9761b2a9713dfc3dc097ca8ffd5a1e9ec712f568

1 files changed, 7 insertions(+), 3 deletions(-)

jump to
M main.gomain.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) }