1
0

update some commands

This commit is contained in:
2024-07-09 22:27:05 +02:00
parent 14b71adf45
commit e15a376cdf
3 changed files with 11 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ set -eu
source "${BOOTSTRAP_LIB}/helpers"
VERSION="18.2.0"
VERSION="18.3.0"
INSTALL_DIR="${HOME}/.local/bin"
INSTALLED_VERSION=""
@@ -19,7 +19,7 @@ fi
echo "Installing atuin version ${VERSION} ..."
URL="https://github.com/atuinsh/atuin/releases/download/v${VERSION}/atuin-v${VERSION}-x86_64-unknown-linux-gnu.tar.gz"
URL="https://github.com/atuinsh/atuin/releases/download/v${VERSION}/atuin-x86_64-unknown-linux-gnu.tar.gz"
echo "Downloading from ${URL} ..."
TARGET="$(download "$URL")"
@@ -31,7 +31,7 @@ fi
echo "Unpacking atuin command to ${INSTALL_DIR}..."
mkdir -p "${INSTALL_DIR}"
tar --directory="${INSTALL_DIR}" -xf "${TARGET}" --strip-components 1 "atuin-v${VERSION}-x86_64-unknown-linux-gnu/atuin"
tar --directory="${INSTALL_DIR}" -xf "${TARGET}" --strip-components 1 "atuin-x86_64-unknown-linux-gnu/atuin"
echo "Removing ${TARGET} ..."
rm -f "${TARGET}"

View File

@@ -14,6 +14,10 @@ if [[ -x "$(command -v hx)" ]] ; then
INSTALLED_VERSION="$(hx --version | grep -o '[0-9]\+\.[0-9.]\+')"
fi
echo $VERSION
echo $INSTALLED_VERSION
exit 0
if [[ "$VERSION" == "$INSTALLED_VERSION" ]] ; then
echo "Helix editor version ${VERSION} already installed."
exit 0

View File

@@ -4,7 +4,7 @@ set -eu
source "${BOOTSTRAP_LIB}/helpers"
VERSION="1.18.2"
VERSION="1.19.0"
INSTALL_DIR="${HOME}/.local/bin"
INSTALLED_VERSION=""