Skip to content

Commit aa212b3

Browse files
committed
Don't use long options with install.
1 parent e8cb8dd commit aa212b3

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

adp-connect.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ fi
668668
if should_install "gum"; then
669669
download_latest_release "charmbracelet/gum" "gum" "tar.gz" || exit 1
670670
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
672672
info "🎉 Successfully installed gum!"
673673

674674
HAVE_GUM="true"
@@ -678,7 +678,7 @@ fi
678678
# JSON and YAML. One tool, no interperters needed.
679679
if should_install "yq"; then
680680
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
682682
info "🎉 Successfully installed yq!"
683683
elif ! yq --version | grep -q mikefarah; then
684684
error "🚨 You have a version of 'yq' installed that is incompatible with this script."
@@ -703,7 +703,7 @@ fi
703703
if [[ "${INSTALL_RANCHER}" = "0" ]]; then
704704
download_latest_release "rancher/cli" "rancher" "tar.gz" || exit 1
705705
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
707707
info "🎉 Successfully installed rancher CLI!"
708708
fi
709709

@@ -928,7 +928,7 @@ fi
928928
if should_install "kubeseal"; then
929929
download_latest_release "bitnami-labs/sealed-secrets" "kubeseal" "tar.gz" || exit 1
930930
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
932932
info "🎉 Successfully installed kubeseal!"
933933
fi
934934

@@ -976,21 +976,21 @@ fi
976976
if should_install "k9s"; then
977977
download_latest_release "derailed/k9s" "k9s" "tar.gz" || exit 1
978978
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
980980
info "🎉 Successfully installed k9s!"
981981
fi
982982

983983
if should_install "skaffold"; then
984984
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
986986
info "🎉 Successfully installed skaffold!"
987987
fi
988988

989989
if should_install "gh"; then
990990
download_latest_release "cli/cli" "gh" "tar.gz" || exit 1
991991
extract_download "gh" "tar.gz" || exit 1
992992
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
994994
info "🎉 Successfully installed gh!"
995995
fi
996996

@@ -1102,7 +1102,7 @@ if [[ "${SETUP_INTERNAL_SERVICES}" = "true" ]]; then
11021102

11031103
if should_install "argocd"; then
11041104
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
11061106
info "🎉 Successfully installed ArgoCD!"
11071107
fi
11081108

0 commit comments

Comments
 (0)