zoa pwease
Jes Olson j3s@c3f.net
Fri, 30 Sep 2022 18:47:12 -0500
1 files changed,
16 insertions(+),
15 deletions(-)
jump to
M
main.go
→
main.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 {