reduce logging

This commit is contained in:
Stavros Kois
2024-05-13 00:33:32 +03:00
committed by GitHub
parent 25323f989e
commit 8c4639a796
2 changed files with 3 additions and 3 deletions

View File

@@ -26,12 +26,12 @@ 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
[ "$DEBUG" == "true" ] && set +x
content=$(cat "$file_path")
echo -e "---\n" >"$file_path"
echo -e "---\n" >>"$file_path"
echo "$content" >>"$file_path"
[ "$DEBUG" ] && set -x
[ "$DEBUG" == "true" ] && set -x
fi
# Get the title from the front matter