Commit a5c35c58 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix: ignore case option

parent 497867cc
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -210,31 +210,31 @@ function build_aggregated_toc() {
    echo "- Templates Reference:"
    if [[ -f "$tmp_dir/toc/build" ]]; then
      echo "  - Build & Test:"
      sort --ignore--compact-outputase "$tmp_dir/toc/build" | sed 's/^/    /'
      sort -f "$tmp_dir/toc/build" | sed 's/^/    /'
    fi
    if [[ -f "$tmp_dir/toc/analyse" ]]; then
      echo "  - Code Analysis:"
      sort --ignore-case "$tmp_dir/toc/analyse" | sed 's/^/    /'
      sort -f "$tmp_dir/toc/analyse" | sed 's/^/    /'
    fi
    if [[ -f "$tmp_dir/toc/package" ]]; then
      echo "  - Packaging:"
      sort --ignore-case "$tmp_dir/toc/package" | sed 's/^/    /'
      sort -f "$tmp_dir/toc/package" | sed 's/^/    /'
    fi
    if [[ -f "$tmp_dir/toc/infrastructure" ]]; then
      echo "  - Infrastructure:"
      sort --ignore-case "$tmp_dir/toc/infrastructure" | sed 's/^/    /'
      sort -f "$tmp_dir/toc/infrastructure" | sed 's/^/    /'
    fi
    if [[ -f "$tmp_dir/toc/hosting" ]]; then
      echo "  - Deploy & Run:"
      sort --ignore-case "$tmp_dir/toc/hosting" | sed 's/^/    /'
      sort -f "$tmp_dir/toc/hosting" | sed 's/^/    /'
    fi
    if [[ -f "$tmp_dir/toc/acceptance" ]]; then
      echo "  - Acceptance:"
      sort --ignore-case "$tmp_dir/toc/acceptance" | sed 's/^/    /'
      sort -f "$tmp_dir/toc/acceptance" | sed 's/^/    /'
    fi
    if [[ -f "$tmp_dir/toc/others" ]]; then
      echo "  - Others:"
      sort --ignore-case "$tmp_dir/toc/others" | sed 's/^/    /'
      sort -f "$tmp_dir/toc/others" | sed 's/^/    /'
    fi
  } > "$toc_file"
  cat "$toc_file"