summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh2
-rwxr-xr-xenv.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 606143166d..8716cde922 100755
--- a/build.sh
+++ b/build.sh
@@ -17,7 +17,7 @@ RUSTC_VERSION=`rustc +stable --version`
PRODUCT_VERSION=$(node -p "require('./gui/package.json').version" | sed -Ee 's/\.0//g')
CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-"$SCRIPT_DIR/target"}
-source env.sh
+source env.sh ""
if [[ "${1:-""}" != "--dev-build" ]]; then
if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]]; then
diff --git a/env.sh b/env.sh
index 01baf8b491..735943788e 100755
--- a/env.sh
+++ b/env.sh
@@ -4,6 +4,8 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -n "$1" ]; then
PLATFORM="$1"
+else
+ PLATFORM=""
fi
if [ -z "$PLATFORM" ]; then