Skip to content

Commit c32af0c

Browse files
authored
Update helm-git-plugin.sh
1 parent d3a5a14 commit c32af0c

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

helm-git-plugin.sh

+17-8
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@
44

55
set -eu
66

7-
readonly bin_name="helm-git"
8-
readonly allowed_protocols="https http file ssh"
9-
readonly url_prefix="git+"
10-
11-
readonly error_invalid_prefix="Git url should start with '$url_prefix'. Please check helm-git usage."
12-
readonly error_invalid_protocol="Protocol not allowed, it should match one of theses: $allowed_protocols."
13-
7+
bin_name="helm-git"
8+
readonly bin_name
9+
allowed_protocols="https http file ssh"
10+
readonly allowed_protocols
11+
url_prefix="git+"
12+
readonly url_prefix
13+
error_invalid_prefix="Git url should start with '$url_prefix'. Please check helm-git usage."
14+
readonly error_invalid_prefix
15+
error_invalid_protocol="Protocol not allowed, it should match one of theses: $allowed_protocols."
16+
readonly error_invalid_protocol
17+
18+
# Debug & trace output configuration
1419
debug=0
1520
if [ "${HELM_GIT_DEBUG:-}" = "1" ]; then
1621
debug=1
1722
fi
18-
1923
trace=0
2024
git_output="/dev/null"
2125
git_quiet="--quiet"
@@ -25,7 +29,12 @@ if [ "${HELM_GIT_TRACE:-}" = "1" ]; then
2529
git_output="/dev/stderr"
2630
git_quiet=""
2731
fi
32+
readonly trace
33+
readonly debug
34+
readonly git_output
35+
readonly git_quiet
2836

37+
# Set default value for TMPDIR
2938
export TMPDIR="${TMPDIR:-/tmp}"
3039

3140
# Cache repos or charts depending on the cache path existing in the environment variables

0 commit comments

Comments
 (0)