From acd56a5f4027aea74f93509ce260f2d074e3bed1 Mon Sep 17 00:00:00 2001 From: Bill ZHANG <36790218+Lutra-Fs@users.noreply.github.com> Date: Sun, 27 Oct 2024 16:06:55 +1100 Subject: [PATCH] Update run.sh --- run.sh | 38 +------------------------------------- 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/run.sh b/run.sh index 076964f9..718177a3 100644 --- a/run.sh +++ b/run.sh @@ -22,42 +22,6 @@ sed -i "s|{{CheckTime}}|$DATE|g" tmp/chrome.xml ./util/generator.sh stable-x86 stable-x64 beta-x86 beta-x64 dev-x86 dev-x64 canary-x86 canary-x64 -# Function to format XML -format_xml() { - local input=$1 - local output=$2 - - # Read input file and process it - sed ' - # Add newline after elements that end with > - s/>/>\n/g - # Remove empty lines - /^[[:space:]]*$/d - ' "$input" | awk ' - # Initialize indent level - BEGIN { indent = 0 } - - # Processing each line - { - # Remove leading/trailing whitespace - gsub(/^[ \t]+|[ \t]+$/, "") - - # Decrease indent for closing tags - if (match($0, "^$")) { - indent += 2 - } - } - ' > "$output" -} - # Function to minify XML minify_xml() { local input=$1 @@ -77,7 +41,7 @@ minify_xml() { } # Format XML -format_xml "tmp/chrome.xml" "tmp/api/chrome.xml" +cp "tmp/chrome.xml" "tmp/api/chrome.xml" # Minify XML minify_xml "tmp/chrome.xml" "tmp/api/chrome.min.xml"