From d3b57f2ec2fdf952bee8470c2de22e954e9cae12 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 4 May 2018 10:10:49 +0200 Subject: bin/ii-answer: tell about sanity --- bin/ii-answer | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'bin/ii-answer') diff --git a/bin/ii-answer b/bin/ii-answer index 00d4754..9b25abb 100755 --- a/bin/ii-answer +++ b/bin/ii-answer @@ -94,7 +94,15 @@ find "${irc_dir}" \ if grep "${regex}" "${out_file}" | \ grep -q "${sloppy_salutation}"; then sed -i "/${regex}/d" "${out_file}" - printf 'up? I'"'"'m up for %s, %s\n' "$(uptime -p | sed 's/^up //')" "$(uptime | sed 's/.*, //')" | \ + { + printf 'up? I'"'"'m up for %s, %s' \ + "$(uptime -p | sed 's/^up //')" \ + "$(uptime | sed 's/.*, //')" + if [ -s "${work_dir}/build-master-sanity" ]; then + printf ' ... and I'"'"'m insane :-D' + fi + printf '\n' + } | \ irc_say "${channel}" 'copy' fi # answer "Thanks!" -- cgit v1.2.3-70-g09d2