From 6af349b61f6b72a3cc70261254f03e203a095127 Mon Sep 17 00:00:00 2001 From: Mike Aizatsky Date: Fri, 3 Mar 2017 16:37:19 -0800 Subject: [PATCH] [infra] simplifying bash --- infra/base-images/base-builder/compile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/base-images/base-builder/compile b/infra/base-images/base-builder/compile index 02b0cd100..0d229ff7f 100755 --- a/infra/base-images/base-builder/compile +++ b/infra/base-images/base-builder/compile @@ -44,7 +44,7 @@ echo "CXXFLAGS=$CXXFLAGS" echo "---------------------------------------------------------------" BUILD_CMD="bash -eux $SRC/build.sh" -if [ -n "${BUILD_UID-}" -a "${BUILD_UID-}" -ne "0"]; then +if [ "${BUILD_UID-0}" -ne "0" ]; then adduser -u $BUILD_UID --disabled-password --gecos '' builder chown -R builder $SRC $OUT $WORK su -c "$BUILD_CMD" builder