Fixed syntax error on line 60

This commit is contained in:
FoxStorm1 2023-09-24 19:54:25 +01:00 committed by GitHub
parent 1d1faf11e7
commit 44aeae6286
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,19 +52,19 @@ jobs:
AVATARS_CSS_CONTENT="" AVATARS_CSS_CONTENT=""
# Loop through each badge entry in the JSON data # Loop through each badge entry in the JSON data
for DISCORD_ID in $(echo "$JSON_DATA" | jq -r '.badges | keys[]'); do for DISCORD_ID in $(echo "$JSON_DATA" | jq -r '.badges | keys[]'); do
BADGE_URL=$(echo "$JSON_DATA" | jq -r ".badges[\"$DISCORD_ID\"]") BADGE_URL=$(echo "$JSON_DATA" | jq -r ".badges[\"$DISCORD_ID\"]")
# Create CSS snippet for the badge # Create CSS snippet for the badge
BADGES_CSS_SNIPPET=".userProfileInner-1ngKnf:has(.avatar-31d8He[src^=\"https://cdn.discordapp.com/avatars/$DISCORD_ID\"]) > .topSection-13QKHs > header > .header-S26rhB > .headerTop-1PNKck > .container-1gYwHN:before, BADGES_CSS_SNIPPET=".userProfileInner-1ngKnf:has(.avatar-31d8He[src^=\"https://cdn.discordapp.com/avatars/$DISCORD_ID\"]) > .topSection-13QKHs > header > .header-S26rhB > .headerTop-1PNKck > .container-1gYwHN:before,
.userPopoutInner-nv9Y92:has(.avatar-31d8He[src^=\"https://cdn.discordapp.com/avatars/$DISCORD_ID\"]) > .container-1gYwHN:before, .userPopoutInner-nv9Y92:has(.avatar-31d8He[src^=\"https://cdn.discordapp.com/avatars/'$DISCORD_ID'\"]) > .container-1gYwHN:before,
.userInfo-regn9W:has([src^=\"https://cdn.discordapp.com/avatars/$DISCORD_ID\"]) > .wrapper-3Un6-K + div > .container-1gYwHN:before, .userInfo-regn9W:has([src^=\"https://cdn.discordapp.com/avatars/$DISCORD_ID\"]) > .wrapper-3Un6-K + div > .container-1gYwHN:before,
.userPopoutInner-nv9Y92:has(.imageUploaderInner-IIRaFr[style*=\"$DISCORD_ID\"]) > .container-1gYwHN:before { .userPopoutInner-nv9Y92:has(.imageUploaderInner-IIRaFr[style*=\"$DISCORD_ID\"]) > .container-1gYwHN:before {
content: \"\"; content: \"\";
width: 22px; width: 22px;
height: 22px; height: 22px;
background: url($BADGE_URL) center / 100% 100%; background: url($BADGE_URL) center / 100% 100%;
}" }"
# Append the badge CSS snippet to the badge CSS content # Append the badge CSS snippet to the badge CSS content
BADGES_CSS_CONTENT="${BADGES_CSS_CONTENT}\n\n$BADGES_CSS_SNIPPET" BADGES_CSS_CONTENT="${BADGES_CSS_CONTENT}\n\n$BADGES_CSS_SNIPPET"