mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-28 12:56:31 -04:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7b4241b2cd | ||
|
|
de508d17f2 |
+1
-1
@@ -9,7 +9,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
LibmuttonVersion = "0.2.1" // untagged releases feature a letter suffix corresponding to the eventual release version, e.g "0.2.A" -> "0.2.0", "0.2.B" -> "0.2.1"
|
LibmuttonVersion = "0.2.2" // untagged releases feature a letter suffix corresponding to the eventual release version, e.g "0.2.A" -> "0.2.0", "0.2.B" -> "0.2.1"
|
||||||
|
|
||||||
FSSpace = "\u259d" // ▝ space/list separator
|
FSSpace = "\u259d" // ▝ space/list separator
|
||||||
FSPath = "\u259e" // ▞ path separator
|
FSPath = "\u259e" // ▞ path separator
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
**libmutton v0.2.2**
|
||||||
|
August 20, 2024
|
||||||
|
|
||||||
|
## Fixes
|
||||||
|
- (de508d17f2b8bebfe895df8c81a87aa058bb5313) Fixed a regression from v0.2.1 where edited entries are improperly synced if their line count is reduced
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
**libmutton v0.2.1**
|
**libmutton v0.2.1**
|
||||||
August 13, 2024
|
August 13, 2024
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -261,7 +261,7 @@ func sftpSync(sshClient *ssh.Client, sshEntryRoot string, sshIsWindows bool, dow
|
|||||||
|
|
||||||
// create local file
|
// create local file
|
||||||
var localFile *os.File
|
var localFile *os.File
|
||||||
localFile, err = os.OpenFile(localEntryFullPath, os.O_CREATE|os.O_WRONLY, 0600)
|
localFile, err = os.OpenFile(localEntryFullPath, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0600)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(core.AnsiError+"Sync failed - Unable to create local file:", err.Error()+core.AnsiReset)
|
fmt.Println(core.AnsiError+"Sync failed - Unable to create local file:", err.Error()+core.AnsiReset)
|
||||||
os.Exit(core.ErrorWrite)
|
os.Exit(core.ErrorWrite)
|
||||||
@@ -318,7 +318,7 @@ func sftpSync(sshClient *ssh.Client, sshEntryRoot string, sshIsWindows bool, dow
|
|||||||
|
|
||||||
// create remote file
|
// create remote file
|
||||||
var remoteFile *sftp.File
|
var remoteFile *sftp.File
|
||||||
remoteFile, err = sftpClient.OpenFile(remoteEntryFullPath, os.O_CREATE|os.O_WRONLY)
|
remoteFile, err = sftpClient.OpenFile(remoteEntryFullPath, os.O_CREATE|os.O_TRUNC|os.O_WRONLY)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(core.AnsiError+"Sync failed - Unable to create remote file ("+remoteEntryFullPath+"):", err.Error()+core.AnsiReset)
|
fmt.Println(core.AnsiError+"Sync failed - Unable to create remote file ("+remoteEntryFullPath+"):", err.Error()+core.AnsiReset)
|
||||||
os.Exit(core.ErrorWrite)
|
os.Exit(core.ErrorWrite)
|
||||||
|
|||||||
Reference in New Issue
Block a user