Make hishtory install work even if there is zero shell history on the device

This commit is contained in:
David Dworken 2024-02-05 21:29:32 -08:00
parent 7c07236dc0
commit 2ad499b61b
No known key found for this signature in database

View File

@ -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