diff --git a/.github/scripts/frontmatter.sh b/.github/scripts/frontmatter.sh index d147ca8aa15..25240281d03 100755 --- a/.github/scripts/frontmatter.sh +++ b/.github/scripts/frontmatter.sh @@ -24,6 +24,7 @@ is_true() { # 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 @@ -31,8 +32,10 @@ fi echo "Checking front matter" if ! grep -q "^---$" "$file_path"; then echo "Front matter (start) not found, adding it" + content=$(cat "$file_path") echo -e "---\n" >"$file_path" - echo "$(cat "$file_path")" >>"$file_path" + echo -e "---\n" >>"$file_path" + echo "$content" >>"$file_path" fi # Get the title from the front matter @@ -48,10 +51,3 @@ pagefind=$($base_cmd '.pagefind' "$file_path") if is_empty "$pagefind" || is_true "$pagefind"; then $base_cmd -i '.pagefind=false' "$file_path" fi - -frontmatter=$($base_cmd '.' "$file_path") -# Check if the front matter does end with --- -if [ "${frontmatter: -3}" != "---" ]; then - echo "Front matter (end) not found, adding it" - echo -e "\n---\n" >>"$file_path" -fi diff --git a/charts/incubator/pingvin-share/Chart.yaml b/charts/incubator/pingvin-share/Chart.yaml index 3460d8a1236..dc8765580ae 100644 --- a/charts/incubator/pingvin-share/Chart.yaml +++ b/charts/incubator/pingvin-share/Chart.yaml @@ -33,4 +33,4 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/incubator/pingvin-share - https://hub.docker.com/r/stonith404/pingvin-share type: application -version: 0.0.11 +version: 0.0.12