Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/ii-answer
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-04 10:10:49 +0200
committerErich Eckner <git@eckner.net>2018-05-04 10:10:49 +0200
commitd3b57f2ec2fdf952bee8470c2de22e954e9cae12 (patch)
treecb63c9149190a9620cc7d9a713e8bf368c99aa9f /bin/ii-answer
parent09a043befe9c0e384e1ad69e17d20029437bd276 (diff)
bin/ii-answer: tell about sanity
Diffstat (limited to 'bin/ii-answer')
-rwxr-xr-xbin/ii-answer10
1 files changed, 9 insertions, 1 deletions
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!"