Update shell script styles and update versions
parent
c9004e963e
commit
5f5e995fbd
@ -1,21 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# shellcheck disable=SC1090
|
||||
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||
|
||||
get_arch () {
|
||||
case $(uname -m) in
|
||||
x86_64*) echo amd64;;
|
||||
*) >&2 echo "unsupported architecture: $(uname -m)"; exit 1;;
|
||||
esac
|
||||
}
|
||||
set -euo pipefail
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||
|
||||
APP=cmctl
|
||||
VERSION=${VERSION:-1.6.1}
|
||||
DEST="${XDG_DATA_HOME}/apps/releases/${APP}"
|
||||
URL=https://github.com/jetstack/cert-manager/releases/download/v${VERSION}/cmctl-$(get_os)-$(get_arch).tar.gz
|
||||
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
|
||||
|
||||
main() (
|
||||
set -x
|
||||
URL=https://github.com/cert-manager/cert-manager/releases/download/v${VERSION}/cmctl-$(get_os)-$(get_arch).tar.gz
|
||||
|
||||
extract_tarball "${URL}" "${DEST}/${VERSION}"
|
||||
set_current_link "${DEST}" "${VERSION}"
|
||||
set_link "${XDG_BIN_HOME}/${APP}" "${DEST}" "${APP}"
|
||||
)
|
||||
|
||||
get_arch() (
|
||||
case $(uname -m) in
|
||||
x86_64*) echo amd64 ;;
|
||||
*)
|
||||
echo >&2 "unsupported architecture: $(uname -m)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
)
|
||||
|
||||
main "${@}"
|
||||
|
@ -1,20 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||
set -euo pipefail
|
||||
|
||||
function get_os () {
|
||||
case $(uname -s) in
|
||||
Linux*) echo unknown-linux-gnu;;
|
||||
Darwin*) echo apple-darwin;;
|
||||
*) >&2 echo "unsupported os: $(uname -s)"; exit 1;;
|
||||
esac
|
||||
}
|
||||
# shellcheck disable=SC1091
|
||||
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||
|
||||
APP=dust
|
||||
VERSION=${VERSION:-0.6.2}
|
||||
DEST="${XDG_DATA_HOME}/apps/releases/${APP}"
|
||||
URL="https://github.com/bootandy/dust/releases/download/v${VERSION}/dust-v${VERSION}-$(uname -m)-$(get_os).tar.gz"
|
||||
VERSION=${VERSION:-0.8.6}
|
||||
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
|
||||
|
||||
main() (
|
||||
URL=https://github.com/bootandy/dust/releases/download/v${VERSION}/dust-v${VERSION}-$(uname -m)-$(get_os).tar.gz
|
||||
|
||||
extract_tarball "${URL}" "${DEST}/${VERSION}" "--strip-component 1"
|
||||
set_current_link "${DEST}" "${VERSION}"
|
||||
set_link "${XDG_BIN_HOME}/${APP}" "${DEST}" "${APP}"
|
||||
)
|
||||
|
||||
get_os() (
|
||||
case $(uname -s) in
|
||||
Linux*) echo unknown-linux-gnu ;;
|
||||
Darwin*) echo apple-darwin ;;
|
||||
*)
|
||||
echo >&2 "unsupported os: $(uname -s)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
)
|
||||
|
||||
main "${@}"
|
||||
|
@ -1,22 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -euo pipefail
|
||||
|
||||
# shellcheck disable=SC1090
|
||||
# shellcheck disable=SC1091
|
||||
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||
|
||||
get_arch () {
|
||||
case $(uname -m) in
|
||||
x86_64*) echo amd64;;
|
||||
*) >&2 echo "unsupported architecture: $(uname -m)"; exit 1;;
|
||||
esac
|
||||
}
|
||||
|
||||
APP=evans
|
||||
VERSION=${VERSION:-0.10.2}
|
||||
DEST="${XDG_DATA_HOME}/apps/releases/${APP}"
|
||||
VERSION=${VERSION:-v0.10.11}
|
||||
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
|
||||
|
||||
main() (
|
||||
URL=https://github.com/ktr0731/evans/releases/download/${VERSION}/evans_$(get_os)_$(get_arch).tar.gz
|
||||
|
||||
extract_tarball "${URL}" "${DEST}/${VERSION}"
|
||||
set_current_link "${DEST}" "${VERSION}"
|
||||
set_link "${XDG_BIN_HOME}/${APP}" "${DEST}" "${APP}"
|
||||
)
|
||||
|
||||
get_arch() (
|
||||
case $(uname -m) in
|
||||
x86_64*) echo amd64 ;;
|
||||
*)
|
||||
echo >&2 "unsupported architecture: $(uname -m)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
)
|
||||
|
||||
main "${@}"
|
||||
|
@ -1,20 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||
set -euo pipefail
|
||||
|
||||
function get_os () {
|
||||
case $(uname -s) in
|
||||
Linux*) echo linux;;
|
||||
Darwin*) echo macOS;;
|
||||
*) >&2 echo "unsupported os: $(uname -s)"; exit 1;;
|
||||
esac
|
||||
}
|
||||
# shellcheck disable=SC1091
|
||||
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||
|
||||
APP=gotemplate
|
||||
VERSION=${VERSION:-3.7.0}
|
||||
VERSION=${VERSION:-3.7.2}
|
||||
DEST="${XDG_DATA_HOME}/apps/releases/${APP}"
|
||||
|
||||
main() (
|
||||
URL=https://github.com/coveooss/gotemplate/releases/download/v${VERSION}/gotemplate_${VERSION}_$(get_os)_64-bits.zip
|
||||
|
||||
extract_zip "${URL}" "${DEST}/${VERSION}"
|
||||
set_current_link "${DEST}" "${VERSION}"
|
||||
set_link "${XDG_BIN_HOME}/${APP}" "${DEST}" "${APP}"
|
||||
)
|
||||
|
||||
get_os() (
|
||||
case $(uname -s) in
|
||||
Linux*) echo linux ;;
|
||||
Darwin*) echo macOS ;;
|
||||
*)
|
||||
echo >&2 "unsupported os: $(uname -s)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
)
|
||||
|
||||
main "${@}"
|
||||
|
@ -1,20 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# shellcheck disable=SC1090
|
||||
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||
set -euo pipefail
|
||||
|
||||
get_arch () {
|
||||
case $(uname -m) in
|
||||
x86_64*) echo 64bit;;
|
||||
*) >&2 echo "unsupported architecture: $(uname -m)"; exit 1;;
|
||||
esac
|
||||
}
|
||||
# shellcheck disable=SC1091
|
||||
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||
|
||||
APP=hugo
|
||||
VERSION=${VERSION:-0.88.1}
|
||||
VERSION=${VERSION:-0.111.3}
|
||||
DEST="${XDG_DATA_HOME}/apps/releases/${APP}"
|
||||
|
||||
main() (
|
||||
URL=https://github.com/gohugoio/hugo/releases/download/v${VERSION}/hugo_extended_${VERSION}_$(uname)-$(get_arch).tar.gz
|
||||
|
||||
extract_tarball "${URL}" "${DEST}/${VERSION}"
|
||||
set_current_link "${DEST}" "${VERSION}"
|
||||
set_link "${XDG_BIN_HOME}/${APP}" "${DEST}" "${APP}"
|
||||
)
|
||||
|
||||
get_arch() (
|
||||
case $(uname -m) in
|
||||
x86_64*) echo 64bit ;;
|
||||
*)
|
||||
echo >&2 "unsupported architecture: $(uname -m)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
)
|
||||
|
||||
main "${@}"
|
||||
|
@ -1,16 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -euo pipefail
|
||||
|
||||
# shellcheck disable=SC1090
|
||||
# shellcheck disable=SC1091
|
||||
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||
|
||||
APP=minikube
|
||||
VERSION=${VERSION:-1.25.2}
|
||||
VERSION=${VERSION:-1.30.1}
|
||||
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
|
||||
URL=https://github.com/kubernetes/minikube/releases/download/v${VERSION}/minikube-$(get_os)-$(get_arch).tar.gz
|
||||
|
||||
extract_tarball "${URL}" "${DEST}/${VERSION}" "--strip-components 1"
|
||||
set_current_link "${DEST}" "${VERSION}"
|
||||
set_link "${XDG_BIN_HOME}/${APP}" "${DEST}" minikube-$(get_os)-$(get_arch)
|
||||
set_link "${XDG_BIN_HOME}/${APP}" "${DEST}" "minikube-$(get_os)-$(get_arch)"
|
||||
set_link "${XDG_BIN_HOME}/docker-machine-driver-kvm2" "${DEST}" docker-machine-driver-kvm2
|
||||
|
@ -1,20 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||
set -euo pipefail
|
||||
|
||||
function get_os () (
|
||||
case $(uname -s) in
|
||||
Linux*) echo lnx;;
|
||||
Darwin*) echo mac;;
|
||||
*) >&2 echo "unsupported os: $(uname -s)"; exit 1;;
|
||||
esac
|
||||
)
|
||||
# shellcheck disable=SC1091
|
||||
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||
|
||||
APP=procs
|
||||
VERSION=${VERSION:-0.12.0}
|
||||
VERSION=${VERSION:-0.14.0}
|
||||
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
|
||||
|
||||
main() (
|
||||
set -x
|
||||
URL=https://github.com/dalance/procs/releases/download/v${VERSION}/procs-v${VERSION}-$(uname -m)-$(get_os).zip
|
||||
|
||||
extract_zip "${URL}" "${DEST}/${VERSION}"
|
||||
set_current_link "${DEST}" "${VERSION}"
|
||||
set_link "${XDG_BIN_HOME}/${APP}" "${DEST}" "${APP}"
|
||||
)
|
||||
|
||||
get_os() (
|
||||
case $(uname -s) in
|
||||
Linux*) echo linux ;;
|
||||
Darwin*) echo mac ;;
|
||||
*)
|
||||
echo >&2 "unsupported os: $(uname -s)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
)
|
||||
|
||||
main "${@}"
|
||||
|
@ -1,20 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# shellcheck disable=SC1090
|
||||
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||
set -euo pipefail
|
||||
|
||||
get_arch () {
|
||||
case $(uname -m) in
|
||||
x86_64*) echo amd64;;
|
||||
*) >&2 echo "unsupported architecture: $(uname -m)"; exit 1;;
|
||||
esac
|
||||
}
|
||||
# shellcheck disable=SC1091
|
||||
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||
|
||||
APP=vegeta
|
||||
VERSION=${VERSION:-12.8.4}
|
||||
DEST="${XDG_DATA_HOME}/apps/releases/${APP}"
|
||||
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
|
||||
|
||||
main() (
|
||||
URL=https://github.com/tsenart/vegeta/releases/download/v${VERSION}/vegeta_${VERSION}_$(get_os)_$(get_arch).tar.gz
|
||||
|
||||
extract_tarball "${URL}" "${DEST}/${VERSION}"
|
||||
set_current_link "${DEST}" "${VERSION}"
|
||||
set_link "${XDG_BIN_HOME}/${APP}" "${DEST}" "${APP}"
|
||||
)
|
||||
|
||||
get_arch() (
|
||||
case $(uname -m) in
|
||||
x86_64*) echo amd64 ;;
|
||||
*)
|
||||
echo >&2 "unsupported architecture: $(uname -m)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
)
|
||||
|
||||
main "${@}"
|
||||
|
Loading…
Reference in New Issue