From f83bdb9bdb78bc96c4d2190e8bc92de5dee2d186 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Fri, 8 Mar 2024 10:43:00 -0500 Subject: [PATCH] Disable sshyp-sync-shim on Windows --- main.go | 5 ++++- src/cli/entryReader.go | 2 +- src/offline/2globalsUNIX.go | 1 + src/offline/2globalsWIN.go | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 825da4b..3978de3 100644 --- a/main.go +++ b/main.go @@ -152,7 +152,10 @@ func main() { case "clipclear": offline.ClipClearArgument() case "sync": - cli.SshypSync() // TODO Remove after native sync is implemented + if !offline.Windows { + cli.SshypSync() // TODO Remove after native sync is implemented + } + os.Exit(0) case "init": cli.TempInitCli() case "tweak": // TODO offline.Tweak(), exit after run diff --git a/src/cli/entryReader.go b/src/cli/entryReader.go index 8eadcdb..3ba9de9 100644 --- a/src/cli/entryReader.go +++ b/src/cli/entryReader.go @@ -68,7 +68,7 @@ func EntryReader(decryptedEntry []string, hidePassword bool, sync bool) { fmt.Println() } - if sync { + if sync && !offline.Windows { SshypSync() // TODO Remove after native sync is implemented } diff --git a/src/offline/2globalsUNIX.go b/src/offline/2globalsUNIX.go index 513f6d8..84749fa 100644 --- a/src/offline/2globalsUNIX.go +++ b/src/offline/2globalsUNIX.go @@ -9,3 +9,4 @@ var ConfigPath = ConfigDir + "/libmutton.ini" // PathSeparator defines the character used to separate directories in a path (platform-specific) const PathSeparator = "/" +const Windows = false // TODO temporary, remove after native sync is implemented diff --git a/src/offline/2globalsWIN.go b/src/offline/2globalsWIN.go index 8e15007..2306b52 100644 --- a/src/offline/2globalsWIN.go +++ b/src/offline/2globalsWIN.go @@ -9,3 +9,4 @@ var ConfigPath = ConfigDir + "\\libmutton.ini" // PathSeparator defines the character used to separate directories in a path (platform-specific) const PathSeparator = "\\" +const Windows = true // TODO temporary, remove after native sync is implemented