Sha256: de4ad405a04624c2c28e68eea4737f001bc3582aafea1b0ec273e48c60d45650

Contents?: true

Size: 717 Bytes

Versions: 4

Compression:

Stored size: 717 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 "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

4 entries across 4 versions & 1 rubygems

Version Path
passenger-5.2.3 dev/ci/scripts/debug-console-wrapper.sh
passenger-5.2.2 dev/ci/scripts/debug-console-wrapper.sh
passenger-5.2.1 dev/ci/scripts/debug-console-wrapper.sh
passenger-5.2.0 dev/ci/scripts/debug-console-wrapper.sh