diff --git a/.gitignore b/.gitignore index 9133085..c938d89 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ config.yaml .vscode/ -vendor/ \ No newline at end of file +vendor/ +*.log +*.tar.gz \ No newline at end of file diff --git a/main.go b/main.go index 294d103..eeca9d1 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,6 @@ package main -import "fmt" +import "log" func main() { config := initializeConfig("config.yaml") @@ -8,5 +8,5 @@ func main() { clientConns := sshConn.dialConnection(sshConfig) _ = sshConn.openSession(clientConns) success := sshConn.executeSFTP(clientConns) - fmt.Println(success) + log.Println(success) } diff --git a/tar.go b/tar.go index d727416..2ca37f9 100644 --- a/tar.go +++ b/tar.go @@ -42,7 +42,7 @@ func gzipit(source string, target string) error { return err } -func ungzipit(source string, target string) { +func gunzipit(source string, target string) { reader, err := os.Open(source) if err != nil {