remove unneeded
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user