Sha256: 939ba135126c51064b6ef91eba50b79b378769be6458efaa24dd40bb70078fef

Contents?: true

Size: 729 Bytes

Versions: 6

Compression:

Stored size: 729 Bytes

Contents

#!/usr/bin/env bash
set -eo pipefail

SELFDIR=$(dirname "$0")
SELFDIR=$(cd "$SELFDIR" && pwd)
PASSENGER_ROOT=$(cd "$SELFDIR/../../.." && pwd)
# shellcheck source=lib/functions.sh
source "$SELFDIR/../lib/functions.sh"

if ! "$@"; then
	echo
	echo "-----------------------------"
	echo
	echo "*** An error occurred ***"

	if [[ "$DEBUG_CONSOLE" == 1 ]]; then
		echo
		echo "*** DEBUG_CONSOLE set to 1, so launching a debugging console..."
		echo
		# shellcheck source=../lib/set-container-envvars.sh
		set +e
		source "$PASSENGER_ROOT/dev/ci/lib/set-container-envvars.sh"
		header2 "Launching bash"
		bash -l
	else
		echo "If you want to debug this, run '$CI_COMMAND' with the environment variable DEBUG_CONSOLE=1."
	fi
	exit 1
fi

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
passenger-5.3.5 dev/ci/scripts/debug-console-wrapper.sh
passenger-5.3.4 dev/ci/scripts/debug-console-wrapper.sh
passenger-5.3.3 dev/ci/scripts/debug-console-wrapper.sh
passenger-5.3.2 dev/ci/scripts/debug-console-wrapper.sh
passenger-5.3.1 dev/ci/scripts/debug-console-wrapper.sh
passenger-5.3.0 dev/ci/scripts/debug-console-wrapper.sh