mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-14 17:18:46 +02:00
Better offline handling, implemented the local portion of delete, and maybe fixed the bug when running tests on github actions
This commit is contained in:
@ -72,7 +72,7 @@ func BackupAndRestoreWithId(t *testing.T, id string) func() {
|
||||
touchFile(path.Join(homedir, ".zsh_history"))
|
||||
return func() {
|
||||
for _, file := range renameFiles {
|
||||
_ = os.Rename(file+id+".bak", file)
|
||||
checkError(os.Rename(file+id+".bak", file))
|
||||
}
|
||||
for _, file := range copyFiles {
|
||||
checkError(copy(file+id+".bak", file))
|
||||
|
Reference in New Issue
Block a user