Skip to content

Commit

Permalink
Change formatting of autogenerated script
Browse files Browse the repository at this point in the history
  • Loading branch information
sigaloid committed Dec 28, 2023
1 parent 05f9d4f commit 878ef8e
Show file tree
Hide file tree
Showing 2 changed files with 230 additions and 230 deletions.
10 changes: 5 additions & 5 deletions scripts/update_oauth_resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ num=0
# Append the version list to the source file
echo "$ios_version_list" | while IFS= read -r line; do
num=$((num+1))
echo " \"$line\"," >> "$filename"
echo " \"$line\"," >> "$filename"
echo -e "[$num/$ios_app_count] Fetched \e[34m$line\e[0m."
done

Expand Down Expand Up @@ -73,8 +73,8 @@ echo "$versions" | while IFS= read -r line; do
fetch_page=$(curl -s "$line")
build=$(echo "$fetch_page" | rg "<span class=\"vercode\">\((\d+)\)</span>" --only-matching -r "\$1" | head -n1)
version=$(echo "$fetch_page" | rg "<span class=\"vername\">Reddit (20\d{2}\.\d+\.\d+)</span>" --only-matching -r "\$1" | head -n1)
echo " \"Version $version/Build $build\"," >> "$filename"
echo -e "[$num/$android_count] Fetched \e[32mVersion $version/Build $build\e[0m"
echo " \"Version $version/Build $build\"," >> "$filename"
echo -e "[$num/$android_count] Fetched \e[32mVersion $version/Build $build\e[0m."
done

# Close the array in the source file
Expand All @@ -96,8 +96,8 @@ num=0
# For each in versions, curl the page and extract the build number
echo "$table" | while IFS= read -r line; do
num=$((num+1))
echo " \"$line\"," >> "$filename"
echo -e "[$num/$ios_count] Fetched $line\e[0m"
echo " \"$line\"," >> "$filename"
echo -e "\e[34m[$num/$ios_count] Fetched $line\e[0m."
done

# Close the array in the source file
Expand Down
Loading

0 comments on commit 878ef8e

Please sign in to comment.