1
0

fix version detection

This commit is contained in:
2022-09-06 15:42:31 +02:00
parent 968aed3a14
commit 1234a71e02

View File

@@ -11,7 +11,7 @@ INSTALL_DIR="${APPS_DIR}/helix"
INSTALLED_VERSION=""
if [[ -x "$(command -v hx)" ]] ; then
INSTALLED_VERSION="$(hx --version | grep -o '[0-9]\+\.[0-9]\+')"
INSTALLED_VERSION="$(hx --version | grep -o '[0-9]\+\.[0-9.]\+')"
fi
if [[ "$VERSION" == "$INSTALLED_VERSION" ]] ; then
@@ -45,8 +45,8 @@ ln -s --force "${INSTALL_DIR}/hx" "${HOME}/.local/bin/"
echo "Removing ${TARGET}..."
rm -f "${TARGET}"
echo "Fetching new grammars"
echo "Fetching new grammars..."
hx --grammar fetch
echo "Building new grammers"
echo "Building new grammers..."
hx --grammar build