[infra] syntax fix

This commit is contained in:
Mike Aizatsky 2017-03-03 15:31:38 -08:00 committed by GitHub
parent 1b7132bb5f
commit 4e0110dc18
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ echo "CXXFLAGS=$CXXFLAGS"
echo "---------------------------------------------------------------"
BUILD_CMD="bash -eux $SRC/build.sh"
if [ -n "${BUILD_UID-}" -a "$BUILD_ID" -ne "0"]; then
if [ -n "${BUILD_UID-}" -a "${BUILD_UID-}" -ne "0"]; then
adduser -u $BUILD_UID --disabled-password --gecos '' builder
chown -R builder $SRC $OUT $WORK
su -c "$BUILD_CMD" builder