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=""
@@ -17,11 +17,11 @@ if [[ "$VERSION" == "$INSTALLED_VERSION" ]]; then
exit 0
fi
echo "Installing atuin version ${VERSION}..."
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}..."
echo "Downloading from ${URL} ..."
TARGET="$(download "$URL")"
if [[ -f "${INSTALL_DIR}/atuin" ]]; then
@@ -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}..."
echo "Removing ${TARGET} ..."
rm -f "${TARGET}"