index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/ii-answer | 4 |
diff --git a/bin/ii-answer b/bin/ii-answer index ed333cb..432fc6e 100755 --- a/bin/ii-answer +++ b/bin/ii-answer @@ -42,10 +42,10 @@ find "${irc_dir}" \ sloppy_salutation='' fi # answer "why don't you?" - regex='^\S\+ <\(\S\+\)> '"${prefix}"'!\?why[- ]don'"'"'\?t[- ]you \(build\|stabilize\|unstage\|keep\|stubbornly_keep\) ' + regex='^\S\+ <\(\S\+\)> '"${prefix}"'!\?why[- ]don'"'"'\?t[- ]you \(build\|stabilize\|unstage\|keep\|stubbornly_keep\) \([^?]*\)?\?$' if grep -q "${regex}" "${out_file}"; then sed -i ' - s/'"${regex}"'/\1 \2 / + s/'"${regex}"'/\1 \2 \3/ T w /dev/stdout d |