aboutsummaryrefslogtreecommitdiff
path: root/scripts/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/make.sh')
-rwxr-xr-xscripts/make.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/make.sh b/scripts/make.sh
index 23e4a9b6..3bd8b4d1 100755
--- a/scripts/make.sh
+++ b/scripts/make.sh
@@ -199,7 +199,7 @@ do
while true
do
PENDING="$(echo $PENDING $(jobs -rp) | tr ' ' '\n' | sort -u)"
- [ $(echo "$PENDING" | wc -l) -lt "$CPUS" ] && break;
+ [ $(echo -n "$PENDING" | wc -l) -lt "$CPUS" ] && break;
wait $(echo "$PENDING" | head -n 1) || exit 1
PENDING="$(echo "$PENDING" | tail -n +2)"