small pixel drawing of a pufferfish zoa

zoa pwease
Jes Olson j3s@c3f.net
Fri, 30 Sep 2022 18:47:12 -0500
commit

47dfe58308214f372ebc07da38e2ae63626b7c49

parent

958c435a45c939a894411256992f1725eaac2858

1 files changed, 16 insertions(+), 15 deletions(-)

jump to
M main.gomain.go

@@ -43,25 +43,26 @@ log.Fatal(err)

} // TODO: replace remote binary if newer - err = shell.SSH("command -v zoa", hosts) + // err = shell.SSH("command -v zoa", hosts) + // if err != nil { + // Install Zoa + err = shell.SCP(zoaPath, hosts) if err != nil { - // Install Zoa - err = shell.SCP(zoaPath, hosts) - if err != nil { + log.Fatal(err) + } + err = shell.SSH("chmod +x zoa", hosts) + if err != nil { + log.Fatal(err) + } + err = shell.SSH("mv zoa /usr/local/bin/", hosts) + if err != nil { + subErr := shell.SSH("sudo mv zoa /usr/local/bin/", hosts) + if subErr != nil { log.Fatal(err) } - err = shell.SSH("chmod +x zoa", hosts) - if err != nil { - log.Fatal(err) - } - err = shell.SSH("mv zoa /usr/local/bin/", hosts) - if err != nil { - subErr := shell.SSH("sudo mv zoa /usr/local/bin/", hosts) - if subErr != nil { - log.Fatal(err) - } - } } + // } + // } err = shell.SCP("main", hosts) if err != nil {