fixed sorting of cura versions in cura version detection function

This commit is contained in:
Frank Zechert 2025-04-27 18:12:53 +02:00
parent edbe10b06f
commit b1030f3aba

View File

@ -6,7 +6,7 @@ CURA_FOLDER="/opt/ultimaker-cura"
function get_cura_directories() { function get_cura_directories() {
local VERSION local VERSION
VERSION=$(find "${CURA_CONFIG_BASE}" -maxdepth 1 -mindepth 1 -type d -printf "%f\n" -prune | sort -gr | head -n1) VERSION=$(find "${CURA_CONFIG_BASE}" -maxdepth 1 -mindepth 1 -type d -printf "%f\n" -prune | sort -Vr | head -n1)
CURA_CONFIG="${HOME}/.config/cura/${VERSION}" CURA_CONFIG="${HOME}/.config/cura/${VERSION}"
CURA_SHARE="${HOME}/.local/share/cura/${VERSION}" CURA_SHARE="${HOME}/.local/share/cura/${VERSION}"
CURA_INTERNAL_SHARE="${CURA_FOLDER}/share/cura/resources" CURA_INTERNAL_SHARE="${CURA_FOLDER}/share/cura/resources"