From c0f55156d8a96a4c652b2f37b7be142fe98377d6 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 1 Jun 2025 17:01:40 -0400 Subject: [PATCH] Bump go-boilerplate --- go.mod | 2 +- go.sum | 4 ++-- libmuttonserver.go | 2 +- syncclient/client.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index e8985fa..ca69add 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.24.3 require ( github.com/pkg/sftp v1.13.9 github.com/pquerna/otp v1.5.0 - github.com/rwinkhart/go-boilerplate v0.0.0-20250601184813-71b5056ca6b3 + github.com/rwinkhart/go-boilerplate v0.0.0-20250601205829-83b0be1379fd github.com/rwinkhart/rcw v0.2.0 golang.design/x/clipboard v0.7.0 // only for Android builds golang.org/x/crypto v0.38.0 diff --git a/go.sum b/go.sum index 3acc164..05c8908 100644 --- a/go.sum +++ b/go.sum @@ -13,8 +13,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pquerna/otp v1.5.0 h1:NMMR+WrmaqXU4EzdGJEE1aUUI0AMRzsp96fFFWNPwxs= github.com/pquerna/otp v1.5.0/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg= -github.com/rwinkhart/go-boilerplate v0.0.0-20250601184813-71b5056ca6b3 h1:QgmV+Om1Z1Ix+nO6k9RRIzLpevkeeyrmCspIKysvsc4= -github.com/rwinkhart/go-boilerplate v0.0.0-20250601184813-71b5056ca6b3/go.mod h1:cnzIF45I0FCOvE4YIB+26pLCUx2kWyY2llKYZruNaRY= +github.com/rwinkhart/go-boilerplate v0.0.0-20250601205829-83b0be1379fd h1:qUFlOLvBx/dzQBW/zgFjSJ2EjrFb/lOQXs9q0sDW05g= +github.com/rwinkhart/go-boilerplate v0.0.0-20250601205829-83b0be1379fd/go.mod h1:cnzIF45I0FCOvE4YIB+26pLCUx2kWyY2llKYZruNaRY= github.com/rwinkhart/go-winio-easy-pipe-handles v0.0.0-20250407031321-96994a0e8410 h1:NhHwFM3Pgm6zRUfFKvi0p5ndjfFbVWsRwmmhyFlG4PE= github.com/rwinkhart/go-winio-easy-pipe-handles v0.0.0-20250407031321-96994a0e8410/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= github.com/rwinkhart/peercred-mini v0.1.0 h1:TiS6u8cEWzW55S9X4iVpU72Iuy/NG6rMUJMtUEVEFLw= diff --git a/libmuttonserver.go b/libmuttonserver.go index 7ed8080..b5815b8 100644 --- a/libmuttonserver.go +++ b/libmuttonserver.go @@ -71,7 +71,7 @@ func main() { // create the necessary directories for libmuttonserver to function _, err := global.DirInit(false) if err != nil { - other.PrintError("Failed to initialize libmuttonserver directories: "+err.Error(), back.ErrorWrite, true) + other.PrintError("Failed to initialize libmuttonserver directories: "+err.Error(), back.ErrorWrite) } _ = os.MkdirAll(global.ConfigDir+global.PathSeparator+"deletions", 0700) // error ignored; failure would have occurred by this point in core.DirInit fmt.Println("libmuttonserver directories initialized") diff --git a/syncclient/client.go b/syncclient/client.go index 858125b..9290654 100644 --- a/syncclient/client.go +++ b/syncclient/client.go @@ -382,7 +382,7 @@ func syncLists(sshClient *ssh.Client, sshEntryRoot string, sshIsWindows, timeSyn } } else if !timeSynced { // do not call sftpSync if the client and server times are out of sync - back.Exit(1) + back.Exit(global.ErrorSyncProcess) } fmt.Println("Client is synchronized with server")