diff --git a/Java/scripts/commit.sh b/Java/scripts/commit.sh index 6c49768..3d69882 100755 --- a/Java/scripts/commit.sh +++ b/Java/scripts/commit.sh @@ -3,9 +3,14 @@ COMMIT_MESSAGE="$*" while IFS= read -r line do +if [ "$FIRST_LINE" = true ]; then COMMIT_MESSAGE+=" Co-authored-by: $line" +else + COMMIT_MESSAGE+=" +Co-authored-by: $line" +fi done < utils/.coauthors git add -u git add * diff --git a/Java/scripts/md5 b/Java/scripts/md5 index 56d0d3b..8cd7769 100644 --- a/Java/scripts/md5 +++ b/Java/scripts/md5 @@ -1,4 +1,4 @@ build.sh:a833e7598ad65672a9c01306d244b49f - clean.sh:96ce35f2d2dcb555421e00a6afda23ca - -commit.sh:21af1fa6f09d01679c9e11408967264a - +commit.sh:19132b54a91b821f3a794bcb49756182 - jar.sh:62ce62bbb97d3f3856bcc9b0ad34083c - diff --git a/scripts/commit.sh b/scripts/commit.sh index 5a51401..cb3f217 100755 --- a/scripts/commit.sh +++ b/scripts/commit.sh @@ -8,11 +8,17 @@ find . -type f -name md5 -delete #Generate a new hash for every sub-directory, which may require an update. FILES=$(cat utils/.updateDirectories) COMMIT_MESSAGE="$*" +FIRST_LINE=true while IFS= read -r line do +if [ "$FIRST_LINE" = true ]; then COMMIT_MESSAGE+=" Co-authored-by: $line" +else + COMMIT_MESSAGE+=" +Co-authored-by: $line" +fi done < utils/.coauthors for f in $FILES do diff --git a/scripts/md5 b/scripts/md5 index a3951e1..9ea9e6e 100644 --- a/scripts/md5 +++ b/scripts/md5 @@ -1 +1 @@ -commit.sh:e9204d719d138b430b20ce8942cb4c8b - +commit.sh:dfa474a66aff3d66fb287e9dde628243 -