Commit 4d23928b authored by Guilhem Bonnefille's avatar Guilhem Bonnefille
Browse files

fix: display curl error message

As running in "exit immediately" mode, having feedback on the reason why curl failed is useful.
parent bb7ee029
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ function maybe_process_template() {
     
      # get README file from default branch
      log_info " ... downloading README.md to \\e[33;1m$DOC_OUT/ref/$project_name.md\\e[0m..."
      curl -s -H "$AUTH_HEADER" --output "$DOC_OUT/ref/$project_name.md" "$API_URL/projects/$project_id/repository/files/README.md/raw?ref=$project_default_branch"
      curl -sS -H "$AUTH_HEADER" --output "$DOC_OUT/ref/$project_name.md" "$API_URL/projects/$project_id/repository/files/README.md/raw?ref=$project_default_branch"

      # add entry to TOC
      case "$template_kind" in