Skip to content

Commit

Permalink
absolute link
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Sep 17, 2024
1 parent 611f68f commit d7733b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/og-image.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
for arg in "$@"; do
link=$(grep --only-matching --extended-regexp --max-count 1 '"[^"]+/banner.png"' "$arg")
[ "$link" != "" ] && sed -i "/<head>/a \ <meta property=\"og:image\" content=${link} />" "$arg"
link=$(grep --only-matching --extended-regexp --max-count 1 '"[^"]+/banner.png' "$arg" | cut -c4-)
[ "$link" != "" ] && sed -i "/<head>/a \ <meta property=\"og:image\" content="https://pixi.carapace.sh/${link}" />" "$arg"
done
exit 0

0 comments on commit d7733b5

Please sign in to comment.