Skip to content

Commit

Permalink
Merge pull request #23 from sargsyan/fix-for-the-cases-when-updated-d…
Browse files Browse the repository at this point in the history
…ates-sorting-in-the-notifications-is-violated

Fix for the cases when updated_date sorting is violated
  • Loading branch information
sargsyan authored Feb 21, 2020
2 parents 8ad1c6d + b9c0bf7 commit 5c6f466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions github_notif
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ function show_missed_notifications() {
fi
done

if (( $shown_date < ${latest_commit_dates[2]:-INSTANT_OF_THE_BIG_BANG} )); then
show_all_notifications "$config_url"
if (( i!=0 && $shown_date < ${latest_commit_dates[2]:-INSTANT_OF_THE_BIG_BANG} )); then
sleep $KEEP_IN_SCREEN_TIME_IN_SECONDS
show_all_notifications "$config_url"
fi

(( $shown_date > ${latest_commit_dates[0]:-INSTANT_OF_THE_BIG_BANG} )) && echo "$shown_date" || echo "${latest_commit_dates[0]}"
Expand Down

0 comments on commit 5c6f466

Please sign in to comment.