mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-09-03 15:47:23 -04:00
When syncing deletions, specify that a target is only sheared if it exists
This commit is contained in:
+1
-1
@@ -353,7 +353,7 @@ func deletionSync(deletions []string) {
|
|||||||
var filesDeleted bool
|
var filesDeleted bool
|
||||||
for _, deletion := range deletions {
|
for _, deletion := range deletions {
|
||||||
filesDeleted = true // set a flag to indicate that files have been deleted (used to determine whether to print a gap between deletion and other messages)
|
filesDeleted = true // set a flag to indicate that files have been deleted (used to determine whether to print a gap between deletion and other messages)
|
||||||
fmt.Println(ansiDelete+deletion+backend.AnsiReset, "has been sheared, removing locally")
|
fmt.Println(ansiDelete+deletion+backend.AnsiReset, "has been sheared, removing locally (if it exists)")
|
||||||
os.RemoveAll(backend.EntryRoot + deletion)
|
os.RemoveAll(backend.EntryRoot + deletion)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user