From 30fa734711bbc7f0d45bb5f11debb38e686fc28e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Sat, 31 Mar 2018 20:54:12 +0200 Subject: [PATCH] Improve code formatting --- hack/tfw.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/hack/tfw.sh b/hack/tfw.sh index 803ba68..316ae31 100755 --- a/hack/tfw.sh +++ b/hack/tfw.sh @@ -22,7 +22,9 @@ build_baseimage() { [ ! -d "$BASEIMAGE_PATH" ] && return || : cd $BASEIMAGE_PATH - docker build -t "${BASEIMAGE_NAME}:$(baseimage_releasename)" -t "${BASEIMAGE_NAME}:latest" . + docker build -t "${BASEIMAGE_NAME}:$(baseimage_releasename)" \ + -t "${BASEIMAGE_NAME}:latest" \ + . } release_baseimage() @@ -49,12 +51,18 @@ build_test() { build_baseimage cd $TEST_PATH - docker build -t $IMAGE_NAME -f ${BUILD_CONTEXT}/Dockerfile --build-arg BUILD_CONTEXT=$BUILD_CONTEXT --build-arg NOFRONTEND=1 . + docker build -t $IMAGE_NAME \ + -f ${BUILD_CONTEXT}/Dockerfile \ + --build-arg BUILD_CONTEXT=$BUILD_CONTEXT \ + --build-arg NOFRONTEND=1 \ + . } run_test() { - docker run --rm -p $TEST_PORT:$TEST_PORT -e AVATAO_SECRET=$AVATAO_SECRET $IMAGE_NAME + docker run --rm \ + -p $TEST_PORT:$TEST_PORT \ + -e AVATAO_SECRET=$AVATAO_SECRET $IMAGE_NAME } build_and_run_test()