Update magic starter with auto pathname detection

This commit is contained in:
Kristóf Tóth 2018-03-05 13:57:40 +01:00
parent cbf2caa4c3
commit 404c88a419

View File

@ -1,8 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e 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}" BACKEND_REPO="${BACKEND_REPO:-tutorial-framework-wip}"
FRONTEND_REPO="${FRONTEND_REPO:-tutorial-framework-ng}" FRONTEND_REPO="${FRONTEND_REPO:-tutorial-framework-ng}"
BACKEND_PATH="${TAO_PATH}/${BACKEND_REPO}" BACKEND_PATH="${TAO_PATH}/${BACKEND_REPO}"