mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-24 01:05:42 +01:00
fix(history): logic for store_failed=false (#2284)
* chore: ignore .envrc * fix(history): Check passed exit param instead of not-yet set h.exit
This commit is contained in:
parent
06c8ebd310
commit
62f3807dcb
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,6 +6,7 @@
|
|||||||
.vscode/
|
.vscode/
|
||||||
result
|
result
|
||||||
publish.sh
|
publish.sh
|
||||||
|
.envrc
|
||||||
|
|
||||||
ui/backend/target
|
ui/backend/target
|
||||||
ui/backend/gen
|
ui/backend/gen
|
||||||
|
@ -384,7 +384,7 @@ impl Cmd {
|
|||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
if !settings.store_failed && h.exit != 0 {
|
if !settings.store_failed && exit > 0 {
|
||||||
debug!("history has non-zero exit code, and store_failed is false");
|
debug!("history has non-zero exit code, and store_failed is false");
|
||||||
|
|
||||||
// the history has already been inserted half complete. remove it
|
// the history has already been inserted half complete. remove it
|
||||||
|
Loading…
Reference in New Issue
Block a user