Skip to content

Commit

Permalink
fix: correct variable in error_handler signal check
Browse files Browse the repository at this point in the history
  • Loading branch information
LangLangBart committed May 10, 2024
1 parent 28627b5 commit f40b8d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gh-find-code
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ builtin unset value
error_handler() {
local lineno=$1 msg=$2 exit_code="${3:-1}"
# Ignore SIGINT (Ctrl+C), which results from forcefully terminating 'fzf'.
if [[ $(kill -l "$3" 2>/dev/null) =~ INT$ ]]; then
if [[ $(kill -l "$exit_code" 2>/dev/null) =~ INT$ ]]; then
:
else
{
Expand Down

0 comments on commit f40b8d7

Please sign in to comment.