Skip to content

Commit ec1c3d2

Browse files
committed
add logging to shell_entrypoint with DEPLOY_TOOLS_VERBOSE
1 parent 6a87e17 commit ec1c3d2

File tree

6 files changed

+24
-0
lines changed

6 files changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#! /bin/bash
22

3+
if [[ -n "${DEPLOY_TOOLS_VERBOSE}" ]]; then
4+
set -x
5+
fi
6+
37
{% for line in script -%}
48
{{ line }}
59
{% endfor %}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#! /bin/bash
22

3+
if [[ -n "${DEPLOY_TOOLS_VERBOSE}" ]]; then
4+
set -x
5+
fi
6+
37
echo $EXAMPLE_VALUE
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#! /bin/bash
22

3+
if [[ -n "${DEPLOY_TOOLS_VERBOSE}" ]]; then
4+
set -x
5+
fi
6+
37
echo $EXAMPLE_VALUE
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#! /bin/bash
22

3+
if [[ -n "${DEPLOY_TOOLS_VERBOSE}" ]]; then
4+
set -x
5+
fi
6+
37
argocd login argocd.diamond.ac.uk --grpc-web --sso
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#! /bin/bash
22

3+
if [[ -n "${DEPLOY_TOOLS_VERBOSE}" ]]; then
4+
set -x
5+
fi
6+
37
echo $OTHER_VALUE
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#! /bin/bash
22

3+
if [[ -n "${DEPLOY_TOOLS_VERBOSE}" ]]; then
4+
set -x
5+
fi
6+
37
echo This is the first line of a shell script
48
echo and this is the second line.
59
echo Your input is ${1}

0 commit comments

Comments
 (0)