Skip to content

Commit 214e1bf

Browse files
authored
Merge pull request #1849 from blackflux/dev
[Gally]: master <- dev
2 parents 8b68309 + 011aa2d commit 214e1bf

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/plugin/tasks/serverless/snippets/serverless/test/lib-test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ else
2222
thread_count=1
2323
fi
2424

25-
output="$(cat "$tmp_file" | while read i; do printf "%q\n" "$i"; done | xargs --max-procs=$thread_count -I CMD bash -c CMD | tee /dev/tty)"
25+
output="$(xargs -d'\n' --arg-file="$tmp_file" --max-procs=$thread_count -I CMD bash -c CMD | tee /dev/tty)"
2626

2727
code=0
2828

test/projects/assorted/@sls-closedsource-dynamodb/test/lib-test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ else
2222
thread_count=1
2323
fi
2424

25-
output="$(cat "$tmp_file" | while read i; do printf "%q\n" "$i"; done | xargs --max-procs=$thread_count -I CMD bash -c CMD | tee /dev/tty)"
25+
output="$(xargs -d'\n' --arg-file="$tmp_file" --max-procs=$thread_count -I CMD bash -c CMD | tee /dev/tty)"
2626

2727
code=0
2828

test/projects/assorted/@sls-closedsource-react/test/lib-test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ else
2222
thread_count=1
2323
fi
2424

25-
output="$(cat "$tmp_file" | while read i; do printf "%q\n" "$i"; done | xargs --max-procs=$thread_count -I CMD bash -c CMD | tee /dev/tty)"
25+
output="$(xargs -d'\n' --arg-file="$tmp_file" --max-procs=$thread_count -I CMD bash -c CMD | tee /dev/tty)"
2626

2727
code=0
2828

test/projects/assorted/@sls-closedsource/test/lib-test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ else
2222
thread_count=1
2323
fi
2424

25-
output="$(cat "$tmp_file" | while read i; do printf "%q\n" "$i"; done | xargs --max-procs=$thread_count -I CMD bash -c CMD | tee /dev/tty)"
25+
output="$(xargs -d'\n' --arg-file="$tmp_file" --max-procs=$thread_count -I CMD bash -c CMD | tee /dev/tty)"
2626

2727
code=0
2828

0 commit comments

Comments
 (0)