|
668 | 668 | if should_install "gum"; then |
669 | 669 | download_latest_release "charmbracelet/gum" "gum" "tar.gz" || exit 1 |
670 | 670 | extract_download "gum" "tar.gz" || exit 1 |
671 | | - install --mode=0755 "${TEMP_DIR}/gum"*/"gum" "$HOME/.local/bin/gum" || exit 1 |
| 671 | + install -m "0755" "${TEMP_DIR}/gum"*/"gum" "$HOME/.local/bin/gum" || exit 1 |
672 | 672 | info "🎉 Successfully installed gum!" |
673 | 673 |
|
674 | 674 | HAVE_GUM="true" |
|
678 | 678 | # JSON and YAML. One tool, no interperters needed. |
679 | 679 | if should_install "yq"; then |
680 | 680 | INSANE_CHECKSUMS="true" download_latest_release "mikefarah/yq" "yq" || exit 1 |
681 | | - install --mode=0755 "${TEMP_DIR}/yq" "$HOME/.local/bin/yq" || exit 1 |
| 681 | + install -m "0755" "${TEMP_DIR}/yq" "$HOME/.local/bin/yq" || exit 1 |
682 | 682 | info "🎉 Successfully installed yq!" |
683 | 683 | elif ! yq --version | grep -q mikefarah; then |
684 | 684 | error "🚨 You have a version of 'yq' installed that is incompatible with this script." |
|
703 | 703 | if [[ "${INSTALL_RANCHER}" = "0" ]]; then |
704 | 704 | download_latest_release "rancher/cli" "rancher" "tar.gz" || exit 1 |
705 | 705 | extract_download "rancher" "tar.gz" || exit 1 |
706 | | - install --mode=0755 "${TEMP_DIR}/rancher"*/"rancher" "$HOME/.local/bin/rancher" || exit 1 |
| 706 | + install -m "0755" "${TEMP_DIR}/rancher"*/"rancher" "$HOME/.local/bin/rancher" || exit 1 |
707 | 707 | info "🎉 Successfully installed rancher CLI!" |
708 | 708 | fi |
709 | 709 |
|
|
928 | 928 | if should_install "kubeseal"; then |
929 | 929 | download_latest_release "bitnami-labs/sealed-secrets" "kubeseal" "tar.gz" || exit 1 |
930 | 930 | extract_download "kubeseal" "tar.gz" || exit 1 |
931 | | - install --mode=0755 "${TEMP_DIR}/kubeseal" "$HOME/.local/bin/kubeseal" || exit 1 |
| 931 | + install -m "0755" "${TEMP_DIR}/kubeseal" "$HOME/.local/bin/kubeseal" || exit 1 |
932 | 932 | info "🎉 Successfully installed kubeseal!" |
933 | 933 | fi |
934 | 934 |
|
|
976 | 976 | if should_install "k9s"; then |
977 | 977 | download_latest_release "derailed/k9s" "k9s" "tar.gz" || exit 1 |
978 | 978 | extract_download "k9s" "tar.gz" || exit 1 |
979 | | - install --mode=0755 "${TEMP_DIR}/k9s" "$HOME/.local/bin/k9s" || exit 1 |
| 979 | + install -m "0755" "${TEMP_DIR}/k9s" "$HOME/.local/bin/k9s" || exit 1 |
980 | 980 | info "🎉 Successfully installed k9s!" |
981 | 981 | fi |
982 | 982 |
|
983 | 983 | if should_install "skaffold"; then |
984 | 984 | download_latest_release "GoogleContainerTools/skaffold" "skaffold" || exit 1 |
985 | | - install --mode=0755 "${TEMP_DIR}/skaffold" "$HOME/.local/bin/skaffold" || exit 1 |
| 985 | + install -m "0755" "${TEMP_DIR}/skaffold" "$HOME/.local/bin/skaffold" || exit 1 |
986 | 986 | info "🎉 Successfully installed skaffold!" |
987 | 987 | fi |
988 | 988 |
|
989 | 989 | if should_install "gh"; then |
990 | 990 | download_latest_release "cli/cli" "gh" "tar.gz" || exit 1 |
991 | 991 | extract_download "gh" "tar.gz" || exit 1 |
992 | 992 | mv "${TEMP_DIR}"/gh_* "${TEMP_DIR}/gh" |
993 | | - install --mode=0755 "${TEMP_DIR}/gh/bin/gh" "$HOME/.local/bin/gh" || exit 1 |
| 993 | + install -m "0755" "${TEMP_DIR}/gh/bin/gh" "$HOME/.local/bin/gh" || exit 1 |
994 | 994 | info "🎉 Successfully installed gh!" |
995 | 995 | fi |
996 | 996 |
|
@@ -1102,7 +1102,7 @@ if [[ "${SETUP_INTERNAL_SERVICES}" = "true" ]]; then |
1102 | 1102 |
|
1103 | 1103 | if should_install "argocd"; then |
1104 | 1104 | download_latest_release "argoproj/argo-cd" "argocd" || exit 1 |
1105 | | - install --mode=0755 "${TEMP_DIR}/argocd" "$HOME/.local/bin/argocd" || exit 1 |
| 1105 | + install -m "0755" "${TEMP_DIR}/argocd" "$HOME/.local/bin/argocd" || exit 1 |
1106 | 1106 | info "🎉 Successfully installed ArgoCD!" |
1107 | 1107 | fi |
1108 | 1108 |
|
|
0 commit comments