From 69047109acf37d24be80f5311262ca2a2f93b85a Mon Sep 17 00:00:00 2001 From: David Dworken Date: Tue, 19 Sep 2023 13:35:11 -0700 Subject: [PATCH] Skip presaving the presave command, since it is currently spamming the recorded history entries in bash --- client/cmd/saveHistoryEntry.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/cmd/saveHistoryEntry.go b/client/cmd/saveHistoryEntry.go index 4b59f3e..b2d69ee 100644 --- a/client/cmd/saveHistoryEntry.go +++ b/client/cmd/saveHistoryEntry.go @@ -108,6 +108,11 @@ func presaveHistoryEntry(ctx context.Context) { entry.StartTime = time.Unix(startTime, 0).UTC() entry.EndTime = time.Unix(0, 0).UTC() + // Skip saving references to presaving + if strings.Contains(entry.Command, "presaveHistoryEntry") { + return + } + // And persist it locally. db := hctx.GetDb(ctx) err = lib.ReliableDbCreate(db, *entry)