diff --git a/scripts/ensure-ci-python.sh b/scripts/ensure-ci-python.sh index 2f98a7c..161b525 100755 --- a/scripts/ensure-ci-python.sh +++ b/scripts/ensure-ci-python.sh @@ -23,12 +23,12 @@ fi export DEBIAN_FRONTEND=noninteractive -"${APT_RUNNER[@]}" apt-get update -if ! "${APT_RUNNER[@]}" apt-get install -y "${PYTHON_BIN}" "${PYTHON_BIN}-venv"; then - "${APT_RUNNER[@]}" apt-get install -y software-properties-common - "${APT_RUNNER[@]}" add-apt-repository -y ppa:deadsnakes/ppa - "${APT_RUNNER[@]}" apt-get update - "${APT_RUNNER[@]}" apt-get install -y "${PYTHON_BIN}" "${PYTHON_BIN}-venv" +"${APT_RUNNER[@]}" apt-get update >&2 +if ! "${APT_RUNNER[@]}" apt-get install -y "${PYTHON_BIN}" "${PYTHON_BIN}-venv" >&2; then + "${APT_RUNNER[@]}" apt-get install -y software-properties-common >&2 + "${APT_RUNNER[@]}" add-apt-repository -y ppa:deadsnakes/ppa >&2 + "${APT_RUNNER[@]}" apt-get update >&2 + "${APT_RUNNER[@]}" apt-get install -y "${PYTHON_BIN}" "${PYTHON_BIN}-venv" >&2 fi command -v "${PYTHON_BIN}"