Files
angular__angular/scripts/saucelabs/stop-tunnel.sh
T
Paul Gschwendtner c5920513a1 chore: make tunnel filenames consistent (#2072)
* Currently the tunnel `setup/wait/stop` files always have different names like `sauce_connect_block` or just `waitfor_tunnel`.
2016-12-05 19:08:01 -08:00

17 lines
243 B
Bash
Executable File

#!/bin/bash
set -e -o pipefail
echo "Shutting down Sauce Connect tunnel"
killall sc
while [[ -n `ps -ef | grep "sauce-connect-" | grep -v "grep"` ]]; do
printf "."
sleep .5
done
echo ""
echo "Sauce Connect tunnel has been shut down"