From 2ad499b61b18b759b3c689a7d871482af0061327 Mon Sep 17 00:00:00 2001 From: David Dworken Date: Mon, 5 Feb 2024 21:29:32 -0800 Subject: [PATCH] Make hishtory install work even if there is zero shell history on the device --- client/lib/lib.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/lib/lib.go b/client/lib/lib.go index 2358247..4d3851b 100644 --- a/client/lib/lib.go +++ b/client/lib/lib.go @@ -692,7 +692,7 @@ func Reupload(ctx context.Context) error { return fmt.Errorf("failed to reupload due to failed search: %w", err) } if len(entries) == 0 { - if currentOffset == 0 { + if currentOffset == 0 && numEntries != 0 { return fmt.Errorf("found no entries for reuploading, something went wrong") } else { return nil