summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-01 23:13:54 +0200
committerErich Eckner <git@eckner.net>2018-05-01 23:13:54 +0200
commitb8763816fbc71d088aa0ff6945507d19f8833dcd (patch)
tree0fbbcdb15ef41fe9d7316d1556c9c10bfe01d3d2
parentac07214218710b41db233b387b4bcb816b489e86 (diff)
downloadbuilder-b8763816fbc71d088aa0ff6945507d19f8833dcd.tar.xz
bin/ii-connect: accept !, too
-rwxr-xr-xbin/ii-connect2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ii-connect b/bin/ii-connect
index 07f47c6..5fc5f37 100755
--- a/bin/ii-connect
+++ b/bin/ii-connect
@@ -140,7 +140,7 @@ if [ "$1" = 'watch' ]; then
printf 'up? I'"'"'m up for %s, %s\n' "$(uptime -p | sed 's/^up //')" "$(uptime | sed 's/.*, //')" | \
sponge "${out_file%/out}/in"
fi
- regex='^\(\S\+ \)\?\S\+ <\S\+> \(.* \)\?[Tt]h\(anks\|x\)\([ ,.]\|$\)'
+ regex='^\(\S\+ \)\?\S\+ <\S\+> \(.* \)\?[Tt]h\(anks\|x\)\([ ,.!]\|$\)'
if grep "${regex}" "${out_file}" | \
grep -q "${sloppy_salutation}"; then
done_something=true