1
0

better version detection

This commit is contained in:
2022-07-19 14:17:21 +02:00
parent c7870805a1
commit 5cbeb508e3

View File

@@ -9,7 +9,7 @@ INSTALL_DIR="${HOME}/.local/bin"
INSTALLED_VERSION=""
if [[ -x "$(command -v delta)" ]]; then
INSTALLED_VERSION="$(delta --version | grep -o '[0-9.]\+')"
INSTALLED_VERSION="$(delta --version | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+')"
fi
if [[ "$VERSION" == "$INSTALLED_VERSION" ]]; then