diff options
author | Peter Foley <pefoley2@pefoley.com> | 2016-06-03 11:11:59 -0400 |
---|---|---|
committer | Peter Foley <pefoley2@pefoley.com> | 2016-06-03 11:11:59 -0400 |
commit | 9efea10043f187cb66afe9d7efaf80b7b43384b9 (patch) | |
tree | f335d20e5d62096a4985035e590bb43d551cc43f | |
parent | eff95d6573e851363480919b23dc3850aaca27e5 (diff) | |
download | coreclr-9efea10043f187cb66afe9d7efaf80b7b43384b9.tar.gz coreclr-9efea10043f187cb66afe9d7efaf80b7b43384b9.tar.bz2 coreclr-9efea10043f187cb66afe9d7efaf80b7b43384b9.zip |
Properly handle uname -p output that contains spaces
e.g. Intel(R) Xeon(R) CPU E5-2603 0 @ 1.80GHz
-rwxr-xr-x | build.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -358,7 +358,7 @@ __ProjectRoot="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Use uname to determine what the CPU is. CPUName=$(uname -p) # Some Linux platforms report unknown for platform, but the arch for machine. -if [ $CPUName == "unknown" ]; then +if [ "$CPUName" == "unknown" ]; then CPUName=$(uname -m) fi |