From c297197e54cfe2bf76b6ca8375cd883ae4d018bb Mon Sep 17 00:00:00 2001 From: Nic0Nic0Nii Date: Thu, 19 May 2022 19:21:22 +0000 Subject: [PATCH] Change loop to read line by line instead of by whitespace --- Java/scripts/commit.sh | 8 ++++---- Java/scripts/md5 | 2 +- scripts/commit.sh | 8 ++++---- scripts/md5 | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Java/scripts/commit.sh b/Java/scripts/commit.sh index 04865e7..7f41e77 100755 --- a/Java/scripts/commit.sh +++ b/Java/scripts/commit.sh @@ -2,11 +2,11 @@ #Java AUTHORS=$(cat utils/.coauthors) COMMIT_MESSAGE="$*" -for a in $AUTHORS +while IFS= read -r line do - COMMIT_MESSAGE+=" - Co-authored-by: $a" -done + COMMIT_MESSAGE+=" + $line" +done < "$AUTHORS" git add -u git add * git commit -m "$COMMIT_MESSAGE" diff --git a/Java/scripts/md5 b/Java/scripts/md5 index 364a6f8..04f90c0 100644 --- a/Java/scripts/md5 +++ b/Java/scripts/md5 @@ -1,4 +1,4 @@ a833e7598ad65672a9c01306d244b49f - 96ce35f2d2dcb555421e00a6afda23ca - -b568ecdedf40d35455e1b7998a6f720c - +b3c22857ab8c189247bdf3fdffc30b0a - 2ac636f584c43a1124affb9ea6bdc7bf - diff --git a/scripts/commit.sh b/scripts/commit.sh index c7a3fc7..e51991c 100755 --- a/scripts/commit.sh +++ b/scripts/commit.sh @@ -9,11 +9,11 @@ find . -type f -name md5 -delete FILES=$(cat utils/.updateDirectories) AUTHORS=$(cat utils/.coauthors) COMMIT_MESSAGE="$*" -for a in $AUTHORS +while IFS= read -r line do - COMMIT_MESSAGE+=" - Co-authored-by: $a" -done + COMMIT_MESSAGE+=" + $line" +done < "$AUTHORS" for f in $FILES do search $f diff --git a/scripts/md5 b/scripts/md5 index 750fecc..2e6c406 100644 --- a/scripts/md5 +++ b/scripts/md5 @@ -1 +1 @@ -5f7a73b1831ca754331307f8354cc5cd - +00301b26c41a9f0777b01bb2a2a20cdd -