From 404c88a4198f1afc7695cffb28e34694a8fa2c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Mon, 5 Mar 2018 13:57:40 +0100 Subject: [PATCH] Update magic starter with auto pathname detection --- tfw_magic_start.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tfw_magic_start.sh b/tfw_magic_start.sh index 09c2580..57524e7 100755 --- a/tfw_magic_start.sh +++ b/tfw_magic_start.sh @@ -1,8 +1,7 @@ #!/usr/bin/env bash set -e -[ -z $TAO_PATH ] && echo 'You need to set the "TAO_PATH" envvar to the directory where the TFW repos are cloned!' && exit 1 - +TAO_PATH="${TAO_PATH:-$(dirname $(readlink -f $0))/..}" BACKEND_REPO="${BACKEND_REPO:-tutorial-framework-wip}" FRONTEND_REPO="${FRONTEND_REPO:-tutorial-framework-ng}" BACKEND_PATH="${TAO_PATH}/${BACKEND_REPO}"