Files
angular__angular/scripts/browserstack/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

16 lines
258 B
Bash
Executable File

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