mirror of
https://github.com/ddworken/hishtory.git
synced 2025-01-23 14:49:30 +01:00
Make hishtory install work even if there is zero shell history on the device
This commit is contained in:
parent
7c07236dc0
commit
2ad499b61b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user