diff options
author | Erich Eckner <git@eckner.net> | 2021-06-02 20:05:17 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-06-02 20:05:17 +0200 |
commit | 8e9130a9d21a2d73f8c354e2a3f1d9ccc6f7ea73 (patch) | |
tree | 75091ed43f2e82dad494569d1987b2d59736537f | |
parent | 5cd1f940f7467c658dea12f6f841ac0d949a9028 (diff) | |
download | builder-8e9130a9d21a2d73f8c354e2a3f1d9ccc6f7ea73.tar.xz |
bin/ii-answer: do not let grep exiting 1 exit the whole script
-rwxr-xr-x | bin/ii-answer | 4 |
1 files 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}" | \ |