Skip to content

Commit

Permalink
fix: correct variable assignment order
Browse files Browse the repository at this point in the history
  • Loading branch information
LangLangBart committed Mar 9, 2024
1 parent 5a69cb7 commit 712423a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gh-notify
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ select_notif() {
# 3rd line: the selected line when the user pressed the key
expected_key="$(sed '1d;3d' <<<"$output")"
selected_line="$(sed '1d;2d' <<<"$output")"
IFS=' ' read -r _ thread_id thread_state _ repo_full_name _ _ _ _ type _ num _ <<<"$selected_line"
IFS=' ' read -r _ thread_id thread_state _ repo_full_name _ _ _ _ type num _ <<<"$selected_line"
[[ -z $type ]] && exit 0
case "$expected_key" in
esc)
Expand Down

0 comments on commit 712423a

Please sign in to comment.