mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-27 20:36:29 -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
|
||||
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)
|
||||
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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user