File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,14 +22,15 @@ KUBECTL_MIRROR="${KUBECTL_MIRROR:-https://dl.k8s.io}"
2222HELM_MIRROR=" ${HELM_MIRROR:- https:// get.helm.sh} "
2323MINIKUBE_MIRROR=" ${MINIKUBE_MIRROR:- https:// storage.googleapis.com/ minikube} "
2424GITHUB_RELEASE_URL=" ${GITHUB_RELEASE_MIRROR:- https:// github.com} "
25+ GITHUB_USERCONTENT_URL=" ${GITHUB_USERCONTENT_MIRROR:- https:// raw.githubusercontent.com} "
2526KUBECTL_GCS_MIRROR=" ${KUBECTL_GCS_MIRROR:- https:// storage.googleapis.com/ kubernetes-release} "
2627
2728KUBECTL_SHA256=" ${KUBECTL_SHA256:- " automatic" } "
2829HELM_SHA256=" ${HELM_SHA256:- " automatic" } "
2930MINIKUBE_SHA256=" ${MINIKUBE_SHA256:- " automatic" } "
3031USERNAME=" ${USERNAME:- " ${_REMOTE_USER:- " automatic" } " } "
3132
32- HELM_GPG_KEYS_URI=" https://raw.githubusercontent.com /helm/helm/main/KEYS"
33+ HELM_GPG_KEYS_URI=" ${GITHUB_USERCONTENT_URL} /helm/helm/main/KEYS"
3334
3435if [ " $( id -u) " -ne 0 ]; then
3536 echo -e ' Script must be run as root. Use sudo, su, or add "USER root" to your Dockerfile before running this script.'
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ find_prev_version_from_git_tags() {
167167# Install PHP Composer
168168addcomposer () {
169169 " ${PHP_SRC} " -r " copy('${COMPOSER_MIRROR} /installer', 'composer-setup.php');"
170- HASH=" $( wget -q -O - ${COMPOSER_SIG_MIRROR} /installer.sig) "
170+ HASH=" $( wget -q -O - " ${COMPOSER_SIG_MIRROR} /installer.sig" ) "
171171 " ${PHP_SRC} " -r " if (hash_file('sha384', 'composer-setup.php') === '$HASH ') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
172172 " ${PHP_SRC} " composer-setup.php --install-dir=" /usr/local/bin" --filename=composer
173173 " ${PHP_SRC} " -r " unlink('composer-setup.php');"
You can’t perform that action at this time.
0 commit comments