]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
contributors: strip off final comma
authorDaniel Gustafsson <daniel@yesql.se>
Mon, 2 May 2022 20:45:09 +0000 (22:45 +0200)
committerDaniel Gustafsson <daniel@yesql.se>
Mon, 2 May 2022 20:45:09 +0000 (22:45 +0200)
The final row of contributors should not end with a comma as it's the
end of the list.

Closes: #8785
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
scripts/contributors.sh

index 6f3cf6af2053c71fe97dbd8021bf01d22867cb70..4779c3528b16ed16923dc215fffb380d3a2121a3 100755 (executable)
@@ -91,7 +91,8 @@ awk '{
 }
 
  END {
-   printf("  %s\n", p);
+   pp=substr(p,1,length(p)-1);
+   printf("  %s\n", pp);
    printf("  (%d contributors)\n", num);
  }