Update install-uvtools.sh

This commit is contained in:
Tiago Conceição
2022-11-09 03:19:50 +00:00
parent 0c63caa547
commit 051f11bb6e
+17
View File
@@ -195,6 +195,23 @@ fi
#############
echo "- Detected: $osVariant $arch"
requiredlddversion="2.32"
lddversion="$(ldd --version | awk '/ldd/{print $NF}')"
if [ $(version $lddversion) -lt $(version $requiredlddversion) ]; then
echo ""
echo "##########################################################"
echo "Error: Unable to auto install the latest version."
echo "ldd version: $lddversion detected, but requires at least version $requiredlddversion."
echo "Solutions:"
echo "- Manually download and run older version: https://github.com/sn4k3/UVtools/releases/tag/v3.7.2"
echo "- Upgrade your system to the most recent version"
echo "- Try to upgrade glibc to at least $requiredlddversion (Search about this as it can break your system)"
echo "##########################################################"
exit -1
fi
if [ -z "$(ldconfig -p | grep libpng)" -o -z "$(ldconfig -p | grep libgdiplus)" -o -z "$(ldconfig -p | grep libgeotiff)" -o -z "$(ldconfig -p | grep libavcodec)" ]; then
echo "- Missing dependencies found, installing..."
sudo bash -c "$(curl -fsSL $dependencies_url)"