mirror of
https://github.com/ddworken/hishtory.git
synced 2025-03-13 23:08:22 +01:00
parent
74056c7262
commit
4c696d9788
@ -48,6 +48,10 @@ func exportToJson(ctx context.Context, w io.Writer) error {
|
||||
break
|
||||
}
|
||||
for _, entry := range entries {
|
||||
if entry.Command == "" {
|
||||
// Skip empty commands, see https://github.com/ddworken/hishtory/issues/279
|
||||
continue
|
||||
}
|
||||
m, err := structToMap(*entry)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user