index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-05-01 23:12:03 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-01 23:12:03 +0200 |
commit | ac07214218710b41db233b387b4bcb816b489e86 (patch) | |
tree | 66d401de586c7a04d713fda1ef20f7c594562ebd /bin/ii-connect | |
parent | ed62e2cb3798bd8f587b027c5eefc09d5ce7dbdb (diff) |
-rwxr-xr-x | bin/ii-connect | 8 |
diff --git a/bin/ii-connect b/bin/ii-connect index d678af1..07f47c6 100755 --- a/bin/ii-connect +++ b/bin/ii-connect @@ -140,6 +140,14 @@ 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\)\([ ,.]\|$\)' + if grep "${regex}" "${out_file}" | \ + grep -q "${sloppy_salutation}"; then + done_something=true + sed -i "/${regex}/d" "${out_file}" + printf 'np\n' | \ + sponge "${out_file%/out}/in" + fi done sleep 1 done |