diff --git a/.github/og-image.sh b/.github/og-image.sh index b89730f..a5f8d75 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") + [ "$link" != "" ] && sed -i "//a \ " "$arg" done exit 0