mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
lib/utils (_omb_util_prompt_command_hook): Preserve $?
This commit is contained in:
@@ -317,6 +317,7 @@ _omb_util_prompt_command_hook() {
|
||||
_omb_util_setexit "$status" "$lastarg"
|
||||
eval -- "$hook"
|
||||
done
|
||||
_omb_util_setexit "$status"
|
||||
}
|
||||
|
||||
_omb_util_unload_hook+=('_omb_util_prompt_command=()')
|
||||
|
||||
Reference in New Issue
Block a user