Skip to content

Commit

Permalink
Update helm-git-plugin.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
aslafy-z authored Jul 9, 2024
1 parent d3a5a14 commit c32af0c
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions helm-git-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@

set -eu

readonly bin_name="helm-git"
readonly allowed_protocols="https http file ssh"
readonly url_prefix="git+"

readonly error_invalid_prefix="Git url should start with '$url_prefix'. Please check helm-git usage."
readonly error_invalid_protocol="Protocol not allowed, it should match one of theses: $allowed_protocols."

bin_name="helm-git"
readonly bin_name
allowed_protocols="https http file ssh"
readonly allowed_protocols
url_prefix="git+"
readonly url_prefix
error_invalid_prefix="Git url should start with '$url_prefix'. Please check helm-git usage."
readonly error_invalid_prefix
error_invalid_protocol="Protocol not allowed, it should match one of theses: $allowed_protocols."
readonly error_invalid_protocol

# Debug & trace output configuration
debug=0
if [ "${HELM_GIT_DEBUG:-}" = "1" ]; then
debug=1
fi

trace=0
git_output="/dev/null"
git_quiet="--quiet"
Expand All @@ -25,7 +29,12 @@ if [ "${HELM_GIT_TRACE:-}" = "1" ]; then
git_output="/dev/stderr"
git_quiet=""
fi
readonly trace
readonly debug
readonly git_output
readonly git_quiet

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

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

0 comments on commit c32af0c

Please sign in to comment.