Skip to content

Commit

Permalink
Update parse.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Lutra-Fs authored Oct 27, 2024
1 parent 5ca8135 commit 8f8ea6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util/parse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8f8ea6d

Please sign in to comment.