From 7549b73bf9022b26638469e66405c68bfd70ee4c Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Mon, 13 May 2024 00:00:07 +0300 Subject: [PATCH] reduce logging --- .github/scripts/frontmatter.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/scripts/frontmatter.sh b/.github/scripts/frontmatter.sh index 2ed51c14fba..88c6775ba55 100755 --- a/.github/scripts/frontmatter.sh +++ b/.github/scripts/frontmatter.sh @@ -25,10 +25,13 @@ is_true() { echo "Checking front matter" if ! grep -q "^---$" "$file_path"; then echo "Front matter (start) not found, adding it" + # Dont trace content, as its usually too large + [ "$DEBUG" ] && set +x content=$(cat "$file_path") echo -e "---\n" >"$file_path" echo -e "---\n" >>"$file_path" echo "$content" >>"$file_path" + [ "$DEBUG" ] && set -x fi # Get the title from the front matter