Fix magic starter macOS compatibility

This commit is contained in:
Kristóf Tóth 2018-03-06 13:26:41 +01:00
parent 404c88a419
commit 0f8a1acc92

View File

@ -1,7 +1,10 @@
#!/usr/bin/env bash
set -e
TAO_PATH="${TAO_PATH:-$(dirname $(readlink -f $0))/..}"
[ "$(uname)" == "Darwin" ] && readlink_cmd="greadlink" || readlink_cmd="readlink"
SCRIPT_DIR="$(dirname $($readlink_cmd -f $0))"
TAO_PATH="${TAO_PATH:-$SCRIPT_DIR/..}"
BACKEND_REPO="${BACKEND_REPO:-tutorial-framework-wip}"
FRONTEND_REPO="${FRONTEND_REPO:-tutorial-framework-ng}"
BACKEND_PATH="${TAO_PATH}/${BACKEND_REPO}"