From b8763816fbc71d088aa0ff6945507d19f8833dcd Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 1 May 2018 23:13:54 +0200 Subject: bin/ii-connect: accept !, too --- bin/ii-connect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2