From 8f8ea6d6335351bc8fb99d21ba6aed32a183a2ed Mon Sep 17 00:00:00 2001 From: Bill ZHANG <36790218+Lutra-Fs@users.noreply.github.com> Date: Sun, 27 Oct 2024 16:35:36 +1100 Subject: [PATCH] Update parse.sh --- util/parse.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/parse.sh b/util/parse.sh index 455d40b7..7cfff0f0 100644 --- a/util/parse.sh +++ b/util/parse.sh @@ -32,9 +32,9 @@ do # Extract version - simpler pattern VERSION=$(sed -n 's/.*manifest version="\([^"]*\)".*/\1/p' "$XML_FILE") - # Extract URLs - with complete base URLs - URL1=$(sed -n 's/.*codebase="\(https:\/\/edgedl\.me\.gvt1\.com\/[^"]*\)".*/\1/p' "$XML_FILE" | head -1) - URL2=$(sed -n 's/.*codebase="\(https:\/\/dl\.google\.com\/[^"]*\)".*/\1/p' "$XML_FILE" | head -1) + # Extract URLs - without https:// protocol + URL1=$(sed -n 's/.*codebase="https:\/\/\(edgedl\.me\.gvt1\.com\/[^"]*\)".*/\1/p' "$XML_FILE" | head -1) + URL2=$(sed -n 's/.*codebase="https:\/\/\(dl\.google\.com\/[^"]*\)".*/\1/p' "$XML_FILE" | head -1) # Extract installer name - simpler pattern INSTALLER=$(sed -n 's/.*run="\([^"]*\)".*/\1/p' "$XML_FILE" | head -1)