summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarret Shook <jashoo@microsoft.com>2019-02-21 16:29:59 -0800
committerGitHub <noreply@github.com>2019-02-21 16:29:59 -0800
commit2c10ccaefa48d3418d1fc4fbc4f49eee5745b623 (patch)
treecb7364f45c834569c1f3e2a2ea6eda151661a96f
parentbb0c2df97117060ad21371cfe71fb27e727cd27c (diff)
downloadcoreclr-2c10ccaefa48d3418d1fc4fbc4f49eee5745b623.tar.gz
coreclr-2c10ccaefa48d3418d1fc4fbc4f49eee5745b623.tar.bz2
coreclr-2c10ccaefa48d3418d1fc4fbc4f49eee5745b623.zip
Correct __CrossBuild in build-packages to be 0 or 1 (#22769)
-rwxr-xr-xbuild-packages.sh3
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)