mirror of
https://github.com/truecharts/charts.git
synced 2026-07-08 03:25:23 -03:00
reduce logging
This commit is contained in:
4
.github/scripts/frontmatter.sh
vendored
4
.github/scripts/frontmatter.sh
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user