summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-28 13:31:54 +0200
committerErich Eckner <git@eckner.net>2018-06-28 13:31:54 +0200
commitef4c263fd598a838537c61b8ed358f134e0fe1d5 (patch)
treee4b1642fe8e3cd069748085a93cfdfad8a274a9f /bin
parent274e721f82101d169ee3bfd5105046b82a389797 (diff)
downloadbuilder-ef4c263fd598a838537c61b8ed358f134e0fe1d5.tar.xz
bin/ii-answer: understand/ignore "!" at start of command
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ii-answer4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ii-answer b/bin/ii-answer
index 5a7bc53..bc1784c 100755
--- a/bin/ii-answer
+++ b/bin/ii-answer
@@ -42,7 +42,7 @@ find "${irc_dir}" \
sloppy_salutation=''
fi
# answer "why don't you?"
- regex='^\(\S\+ \)\?\S\+ <\S\+> '"${prefix}"'why[- ]don'"'"'\?t[- ]you \(build\|stabilize\|unstage\|keep\|stubbornly_keep\) '
+ regex='^\(\S\+ \)\?\S\+ <\S\+> '"${prefix}"'!\?why[- ]don'"'"'\?t[- ]you \(build\|stabilize\|unstage\|keep\|stubbornly_keep\) '
if grep -q "${regex}" "${out_file}"; then
sed -i '
s/'"${regex}"'/\2 /
@@ -66,7 +66,7 @@ find "${irc_dir}" \
done
fi
# answer "wtf?"
- regex='^\(\S\+ \)\?\S\+ <\S\+> '"${prefix}"'wtf '
+ regex='^\(\S\+ \)\?\S\+ <\S\+> '"${prefix}"'!\?wtf '
if grep -q "${regex}" "${out_file}"; then
sed -i '
s/'"${regex}"'//