From bdf3ee8277741a9ab8cfd0866ddd176d7145f41b Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Tue, 7 Jun 2022 14:11:07 -0700 Subject: [PATCH] Add CircleCI install script --- hellotech/.local/bin/install-circleci | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 hellotech/.local/bin/install-circleci diff --git a/hellotech/.local/bin/install-circleci b/hellotech/.local/bin/install-circleci new file mode 100755 index 0000000..74ffee8 --- /dev/null +++ b/hellotech/.local/bin/install-circleci @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# shellcheck disable=SC1090 +source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh" + +APP=circleci +VERSION=${VERSION:-0.1.18894} +DEST=${XDG_DATA_HOME}/apps/releases/${APP} +URL=https://github.com/CircleCI-Public/circleci-cli/releases/download/v${VERSION}/circleci-cli_${VERSION}_$(get_os)_$(get_arch).tar.gz + +extract_tarball "${URL}" "${DEST}/${VERSION}" "--strip-component 1" +set_current_link "${DEST}" "${VERSION}" +set_link "${XDG_BIN_HOME}/${APP}" "${DEST}" "${APP}"