Skip to content

Commit

Permalink
Merge branch 'master' into erd1ezxnz5lywd5zpcnl7x3u74vc60tgjxdnga3s06…
Browse files Browse the repository at this point in the history
…08gmnx6rsxmwhqudsllw-account-1713500810
  • Loading branch information
bogdan-rosianu authored Apr 19, 2024
2 parents b0b1238 + a599cda commit 1fac33c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/snippet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ validate_png_dimensions() {
EXPECTED_PNG_DIMENSIONS="200 x 200"
for file in "$@"; do
echo "Checking PNG dimensions for $file"
if [[ ${file} == *"/logo.png"* && (${file} == *"identities/"* || ${file} == *"tokens/"*) ]]; then
logo_in_tokens="*tokens/*/logo.png"
logo_in_identities="*identities/*/logo.png"
png_in_accounts="*accounts/*/*.png"

if [[ ${file} == ${logo_in_tokens} || ${file} == ${logo_in_identities} || ${file} == ${png_in_accounts} ]]; then
png_dimensions=$(file $file | grep -E -o "[0-9]+ x [0-9]+" | head -1)

echo "PNG dimensions: $png_dimensions"
Expand Down

0 comments on commit 1fac33c

Please sign in to comment.