X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=switch-mail-host;h=8d4072b72e1dc29b823a535db168f5a11c41b4d5;hp=9b4872db4b189c56245a3d31746976e027e855b9;hb=f0a35267f28e274ef3c2f63ffc20a26ca864e37c;hpb=866a0cbd9127386520def96ff49bdc8424df8112 diff --git a/switch-mail-host b/switch-mail-host index 9b4872d..8d4072b 100755 --- a/switch-mail-host +++ b/switch-mail-host @@ -125,8 +125,15 @@ for ((i=0; i<10; i++)); do sleep 1 if [[ i == 9 ]]; then warn="WARNING!!! failed to kill arbtt-capture" - fi - done + fi +done +for ((i=0; i<10; i++)); do + $new_shell killall arbtt-capture || break + sleep 1 + if [[ i == 9 ]]; then + warn="WARNING!!! failed to kill arbtt-capture" + fi +done $new_shell bash -s <<'EOF'