mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-27 10:49:35 +02:00
Format LATEST_VERSION_DOTTED from LATEST_VERSION (#14745)
Change LATEST_VERSION_DOTTED assignment to format version correctly.
This commit is contained in:
@@ -4756,7 +4756,7 @@ setup_gs() {
|
||||
return 250
|
||||
}
|
||||
LATEST_VERSION="${LATEST_VERSION#gs}"
|
||||
local LATEST_VERSION_DOTTED="$LATEST_VERSION"
|
||||
local LATEST_VERSION_DOTTED=$(echo "$LATEST_VERSION" | sed 's/\([0-9]\{2\}\)\([0-9]\{2\}\)\([0-9]\{1\}\)/\1.\2.\3/')
|
||||
|
||||
if [[ -z "$LATEST_VERSION" || -z "$LATEST_VERSION_DOTTED" ]]; then
|
||||
msg_warn "Could not determine latest Ghostscript version from GitHub - checking system"
|
||||
|
||||
Reference in New Issue
Block a user