Change loop to read line by line instead of by whitespace

main
Nic0Nic0Nii 3 years ago
parent ae27308254
commit c297197e54
  1. 6
      Java/scripts/commit.sh
  2. 2
      Java/scripts/md5
  3. 6
      scripts/commit.sh
  4. 2
      scripts/md5

@ -2,11 +2,11 @@
#Java #Java
AUTHORS=$(cat utils/.coauthors) AUTHORS=$(cat utils/.coauthors)
COMMIT_MESSAGE="$*" COMMIT_MESSAGE="$*"
for a in $AUTHORS while IFS= read -r line
do do
COMMIT_MESSAGE+=" COMMIT_MESSAGE+="
Co-authored-by: $a" $line"
done done < "$AUTHORS"
git add -u git add -u
git add * git add *
git commit -m "$COMMIT_MESSAGE" git commit -m "$COMMIT_MESSAGE"

@ -1,4 +1,4 @@
a833e7598ad65672a9c01306d244b49f - a833e7598ad65672a9c01306d244b49f -
96ce35f2d2dcb555421e00a6afda23ca - 96ce35f2d2dcb555421e00a6afda23ca -
b568ecdedf40d35455e1b7998a6f720c - b3c22857ab8c189247bdf3fdffc30b0a -
2ac636f584c43a1124affb9ea6bdc7bf - 2ac636f584c43a1124affb9ea6bdc7bf -

@ -9,11 +9,11 @@ find . -type f -name md5 -delete
FILES=$(cat utils/.updateDirectories) FILES=$(cat utils/.updateDirectories)
AUTHORS=$(cat utils/.coauthors) AUTHORS=$(cat utils/.coauthors)
COMMIT_MESSAGE="$*" COMMIT_MESSAGE="$*"
for a in $AUTHORS while IFS= read -r line
do do
COMMIT_MESSAGE+=" COMMIT_MESSAGE+="
Co-authored-by: $a" $line"
done done < "$AUTHORS"
for f in $FILES for f in $FILES
do do
search $f search $f

@ -1 +1 @@
5f7a73b1831ca754331307f8354cc5cd - 00301b26c41a9f0777b01bb2a2a20cdd -

Loading…
Cancel
Save