File tree 1 file changed +17
-8
lines changed
1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change 4
4
5
5
set -eu
6
6
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
14
19
debug=0
15
20
if [ " ${HELM_GIT_DEBUG:- } " = " 1" ]; then
16
21
debug=1
17
22
fi
18
-
19
23
trace=0
20
24
git_output=" /dev/null"
21
25
git_quiet=" --quiet"
@@ -25,7 +29,12 @@ if [ "${HELM_GIT_TRACE:-}" = "1" ]; then
25
29
git_output=" /dev/stderr"
26
30
git_quiet=" "
27
31
fi
32
+ readonly trace
33
+ readonly debug
34
+ readonly git_output
35
+ readonly git_quiet
28
36
37
+ # Set default value for TMPDIR
29
38
export TMPDIR=" ${TMPDIR:-/ tmp} "
30
39
31
40
# Cache repos or charts depending on the cache path existing in the environment variables
You can’t perform that action at this time.
0 commit comments