commit | 22b390feb0d56c6f46cd3f7484343df103f4d0de | [log] [tgz] |
---|---|---|
author | June Tate-Gans <jtgans@google.com> | Tue Jun 09 18:18:08 2020 -0400 |
committer | June Tate-Gans <jtgans@google.com> | Tue Jun 09 18:18:08 2020 -0400 |
tree | 49c6b8d21d5cca3a22b5a2b10950d6dfe57e8a82 | |
parent | 648fd9663f56f0fce3a5d56f69e099b96649b0a5 [diff] |
Add trim to shell command Change-Id: I74288e708d7e02d723939b341f0ab5c186263ca7
diff --git a/vars/functions.groovy b/vars/functions.groovy index 4cf4a6f..d092a7d 100644 --- a/vars/functions.groovy +++ b/vars/functions.groovy
@@ -37,7 +37,7 @@ } def buildTarget(targetName) { - def nprocs = sh(returnStdout: true, script: 'nproc') + def nprocs = sh(returnStdout: true, script: 'nproc').trim() sh "bash -c 'source build/setup.sh; m -j${nprocs} prereqs ${targetName}; exit \$?'" }