config.scripts: fix parsing of installed version (#5162)

This commit is contained in:
Marin Atanasov Nikolov
2025-11-09 23:58:34 +02:00
committed by rootzoll
parent 7f244498e2
commit f8368ce166

View File

@@ -44,7 +44,7 @@ elif [ "$(uname -m | grep -c 'x86_64')" -gt 0 ]; then
fi
# installed version
installedVersion=$(sudo -u bitcoin bitcoind --version | head -n1 | cut -d" " -f4 | cut -c 2-)
installedVersion=$(sudo -u bitcoin bitcoind --version | head -n1 | cut -d" " -f5 | cut -c 2-)
# test if the installed version already the tested/recommended update version
bitcoinUpdateInstalled=$(echo "${installedVersion}" | grep -c "${bitcoinVersion}")