diff options
author | Jarret Shook <jashoo@microsoft.com> | 2019-02-21 16:29:59 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-21 16:29:59 -0800 |
commit | 2c10ccaefa48d3418d1fc4fbc4f49eee5745b623 (patch) | |
tree | cb7364f45c834569c1f3e2a2ea6eda151661a96f | |
parent | bb0c2df97117060ad21371cfe71fb27e727cd27c (diff) | |
download | coreclr-2c10ccaefa48d3418d1fc4fbc4f49eee5745b623.tar.gz coreclr-2c10ccaefa48d3418d1fc4fbc4f49eee5745b623.tar.bz2 coreclr-2c10ccaefa48d3418d1fc4fbc4f49eee5745b623.zip |
Correct __CrossBuild in build-packages to be 0 or 1 (#22769)
-rwxr-xr-x | build-packages.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build-packages.sh b/build-packages.sh index 50ca4d8750..80cdc45f35 100755 --- a/build-packages.sh +++ b/build-packages.sh @@ -17,7 +17,7 @@ initDistroRid() local passedRootfsDir="" # Only pass ROOTFS_DIR if __DoCrossArchBuild is specified. - if [ -z "${__CrossBuild}" ]; then + if (( ${__CrossBuild} == 1 )); then passedRootfsDir=${ROOTFS_DIR} fi @@ -26,6 +26,7 @@ initDistroRid() __ProjectRoot="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" __IsPortableBuild=1 +__CrossBuild=0 # Use uname to determine what the OS is. OSName=$(uname -s) |