diff --git a/misc/tools.func b/misc/tools.func index 088b1d0de..4947123a3 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -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"