Skip to content

Commit

Permalink
Update delete_or_rename_shell_history.go
Browse files Browse the repository at this point in the history
Signed-off-by: Kapil Sharma <[email protected]>
  • Loading branch information
h4l0gen authored and poiana committed Apr 2, 2024
1 parent 71b5d77 commit 6f649c4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions events/syscall/delete_or_rename_shell_history.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ func DeleteOrRenameShellHistory(h events.Helper) error {

historyFile := filepath.Join(homeDir, ".bash_history")

h.Log().Infof("Shell history deleted: %s", historyFile)

err = os.Remove(historyFile)
if err!= nil {
return err
}

os.Remove(historyFile)
return nil
}
}

0 comments on commit 6f649c4

Please sign in to comment.