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