mirror of
https://github.com/truecharts/charts.git
synced 2026-07-08 18:41:24 -03:00
hmm
This commit is contained in:
7
.github/scripts/frontmatter.sh
vendored
7
.github/scripts/frontmatter.sh
vendored
@@ -22,6 +22,13 @@ is_true() {
|
||||
return 1
|
||||
}
|
||||
|
||||
# if file is empty
|
||||
content=$(cat "$file_path")
|
||||
if [ -z "$content" ]; then
|
||||
echo -e "---\n" >"$file_path"
|
||||
echo -e "---\n" >>"$file_path"
|
||||
fi
|
||||
|
||||
echo "Checking front matter"
|
||||
if ! grep -q "^---$" "$file_path"; then
|
||||
echo "Front matter (start) not found, adding it"
|
||||
|
||||
Reference in New Issue
Block a user