/
githubmirror
/
angular-cli
Обзор
Документация
Войти
/
githubmirror
/
angular-cli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v21.2.17
scripts/saucelabs/stop-tunnel.sh
27 строк
762 B
Joey Perrott
ci: remove circleci as we no longer rely on it
13 ноя 2024, 00:09
13 ноя 2024, 00:09
fcf6426
Код
Авторство
О чём код?
#!/usr/bin/env bash # Disable printing of any executed command because this would cause a lot # of spam due to the loop. set +x -u -e -o pipefail if [[ ! -f ${SAUCE_PID_FILE} ]]; then echo "Could not find Saucelabs tunnel PID file. Cannot stop tunnel.." exit 1 fi echo "Shutting down Sauce Connect tunnel" # The process id for the sauce-connect instance is stored inside of the pidfile. tunnelProcessId=$(cat ${SAUCE_PID_FILE}) # Kill the process by using the PID that has been read from the pidfile. Note that # we cannot use killall because CI base container images don't have it installed. kill ${tunnelProcessId} while (ps -p ${tunnelProcessId} &> /dev/null); do printf "." sleep .5 done echo "" echo "Sauce Connect tunnel has been shut down"