diff --git a/.github/og-image.sh b/.github/og-image.sh index a5f8d75..095b565 100755 --- a/.github/og-image.sh +++ b/.github/og-image.sh @@ -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 "//a \ " "$arg" + link=$(grep --only-matching --extended-regexp --max-count 1 '"[^"]+/banner.png' "$arg" | cut -c4-) + [ "$link" != "" ] && sed -i "//a \ " "$arg" done exit 0