From d7733b5f4b194518b81bc02409f7734736aa06d1 Mon Sep 17 00:00:00 2001 From: rsteube Date: Tue, 17 Sep 2024 19:56:49 +0200 Subject: [PATCH] absolute link --- .github/og-image.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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