diff options
author | Erich Eckner <git@eckner.net> | 2018-01-22 20:33:40 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-01-22 20:33:40 +0100 |
commit | 7d67a5bf7d76d8a5b2b11b77a3c17eb37b66be96 (patch) | |
tree | 0dfbcbca9c102095517925c6ffb79c80a9da2850 /bin/sanity-check | |
parent | 170263108c8a6bf53fbfb22f8c7275bfff784edf (diff) | |
download | builder-7d67a5bf7d76d8a5b2b11b77a3c17eb37b66be96.tar.xz |
use sponge to send irc messages w/o being interrupted
Diffstat (limited to 'bin/sanity-check')
-rwxr-xr-x | bin/sanity-check | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/sanity-check b/bin/sanity-check index 65ac5f3..8736d47 100755 --- a/bin/sanity-check +++ b/bin/sanity-check @@ -19,8 +19,8 @@ usage() { i_am_insane() { if [ ! -s "${work_dir}/build-master-sanity" ]; then - printf '\001ACTION goes insane.\001\n' > \ - "${irc_dir}/#archlinux-ports/in" + printf '\001ACTION goes insane.\001\n' | \ + sponge "${irc_dir}/#archlinux-ports/in" fi echo 'build master is insane' > \ "${work_dir}/build-master-sanity" @@ -398,6 +398,6 @@ done if [ -f "${work_dir}/build-master-sanity" ]; then rm "${work_dir}/build-master-sanity" - printf '\001ACTION resumes sanity.\001\n' > \ - "${irc_dir}/#archlinux-ports/in" + printf '\001ACTION resumes sanity.\001\n' | \ + sponge "${irc_dir}/#archlinux-ports/in" fi |