Skip to content

Commit 654e51e

Browse files
committed
Thread through verbose again
1 parent 61bed45 commit 654e51e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

hooks/pre-command

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,9 @@ julia --project="${SANDBOX_REPO}/lib" -e "using Pkg; Pkg.instantiate()"
3737
# Perform absurd bash overwriting, so that all future commands are sandboxed
3838
echo "--- Installing bash override"
3939
cp -va /bin/bash /bin/truebash
40-
julia --project="${SANDBOX_REPO}/lib" "${SANDBOX_REPO}/lib/generate_sandboxed_bash.jl" "${BUILDKITE_PLUGIN_SANDBOX_SHELL:-/bin/bash}"
40+
BASH_TARGET="${BUILDKITE_PLUGIN_SANDBOX_SHELL:-/bin/bash}"
41+
julia --project="${SANDBOX_REPO}/lib" "${SANDBOX_REPO}/lib/generate_sandboxed_bash.jl" "${BASH_TARGET}"
42+
43+
if [[ "${BUILDKITE_PLUGIN_SANDBOX_VERBOSE:-false}" == "true" ]]; then
44+
cat "${BASH_TARGET}"
45+
fi

plugin.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,9 @@ configuration:
2424
type: string
2525
gid:
2626
type: string
27+
28+
# If this is set, causes all sorts of debugging information to be printed out
29+
verbose:
30+
type: boolean
2731

2832
additionalProperties: false

0 commit comments

Comments
 (0)