From 8e9130a9d21a2d73f8c354e2a3f1d9ccc6f7ea73 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 2 Jun 2021 20:05:17 +0200 Subject: bin/ii-answer: do not let grep exiting 1 exit the whole script --- bin/ii-answer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ii-answer b/bin/ii-answer index 319afb1..16fbb78 100755 --- a/bin/ii-answer +++ b/bin/ii-answer @@ -17,7 +17,6 @@ for channel in '#archlinux32:Hi \0!\n!rq \0' '#archlinux32-devops:Hi \0!'; do w /dev/stdout d ' "${irc_dir}/${channel%%:*}/out" \ - | sort -u \ | grep -vxF "$( { printf '%s SNIP\n' $(($(date +%s)-5*60)) @@ -34,7 +33,8 @@ for channel in '#archlinux32:Hi \0!\n!rq \0' '#archlinux32-devops:Hi \0!'; do d ' \ | sort -u - )" + )" \ + | sort -u ) if [ -n "${new_users}" ]; then printf '%s\n' "${new_users}" | \ -- cgit v1.2.3-70-g09d2