fixed sorting of cura versions in cura version detection function
This commit is contained in:
parent
edbe10b06f
commit
b1030f3aba
@ -6,7 +6,7 @@ CURA_FOLDER="/opt/ultimaker-cura"
|
||||
|
||||
function get_cura_directories() {
|
||||
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_SHARE="${HOME}/.local/share/cura/${VERSION}"
|
||||
CURA_INTERNAL_SHARE="${CURA_FOLDER}/share/cura/resources"
|
||||
|
Loading…
x
Reference in New Issue
Block a user