remove unneeded

This commit is contained in:
Stavros Kois
2024-05-12 23:47:34 +03:00
committed by GitHub
parent a0ff446f07
commit 88c72953ea
-7
View File
@@ -22,13 +22,6 @@ is_true() {
return 1
}
# if file is empty
if [ -z "$(cat "$file_path")" ]; then
echo "file is empty"
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"