From ff13cf4dcd5facde67cadc39e90d11e860ee8a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Sun, 25 Mar 2018 16:06:16 +0200 Subject: [PATCH] Make function declarations more portable in magic starter --- hack/tfw_magic_start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hack/tfw_magic_start.sh b/hack/tfw_magic_start.sh index d8f5dd4..06b59df 100755 --- a/hack/tfw_magic_start.sh +++ b/hack/tfw_magic_start.sh @@ -18,19 +18,19 @@ BACKEND_PORT="${BACKEND_PORT:-8888}" AVATAO_SECRET="${AVATAO_SECRET:-secret}" BUILD_CONTEXT="${BUILD_CONTEXT:-solvable}" -function run_frontend() +run_frontend() { cd $FRONTEND_PATH yarn start } -function build_baseimage() +build_baseimage() { cd $BASEIMAGE_PATH docker build -t $BASEIMAGE_NAME . } -function run_backend() +run_backend() { cd $BACKEND_PATH docker build -t $IMAGE_NAME -f ${BUILD_CONTEXT}/Dockerfile --build-arg BUILD_CONTEXT=$BUILD_CONTEXT --build-arg NOFRONTEND=1 .