Browse Source

Branch must be set before autoupdater

Michael Schwarz 5 years ago
parent
commit
7506a76170
1 changed files with 2 additions and 2 deletions
  1. 2 2
      build.sh

+ 2 - 2
build.sh

@@ -57,12 +57,12 @@ LANG=C
 pushd ${MY_DIR} > /dev/null
 
 ### set reasonable defaults for unset environment variables
+[ -n "${BRANCH}" ] || BRANCH=${DEFAULT_BRANCH}
+[ -n "${BASE}" ] || BASE=${DEFAULT_BASE}
 [ -n "${AUTOUPDATER}" ] || AUTOUPDATER=${BRANCH}
 [ "${BROKEN}" == "1" ] && export BROKEN || unset BROKEN
 [ -n "${BUILD_TS}" ] || BUILD_TS=$(date +"%Y-%m-%d %H:%M:%S")
 [ -n "${CLEAN}" ] || CLEAN="none"
-[ -n "${BASE}" ] || BASE=${DEFAULT_BASE}
-[ -n "${BRANCH}" ] || BRANCH=${DEFAULT_BRANCH}
 
 if [ -n "${KEY_DIR}" ]; then
 	KEY_DIR=$(readlink -f "${KEY_DIR}")