mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-11-14 17:07:18 +00:00
Make tfw.sh work with different repo names
This commit is contained in:
parent
9dc4587196
commit
d0c84e4d02
@ -5,10 +5,10 @@ set -o errtrace
|
|||||||
shopt -s expand_aliases
|
shopt -s expand_aliases
|
||||||
[ "$(uname)" == "Darwin" ] && alias readlink="greadlink" || :
|
[ "$(uname)" == "Darwin" ] && alias readlink="greadlink" || :
|
||||||
|
|
||||||
SCRIPT_DIR="$(dirname $(readlink -f $0))"
|
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
|
||||||
TAO_PATH="${TAO_PATH:-$SCRIPT_DIR/../..}"
|
TAO_PATH="${TAO_PATH:-$SCRIPT_DIR/../..}"
|
||||||
BASEIMAGE_REPO="${BASEIMAGE_REPO:-baseimage-tutorial-framework}"
|
BASEIMAGE_REPO="${BASEIMAGE_REPO:-baseimage-tutorial-framework}"
|
||||||
TEST_REPO="${TEST_REPO:-test-tutorial-framework}"
|
TEST_REPO="${TEST_REPO:-"$(basename "$(realpath "${SCRIPT_DIR}/..")")"}"
|
||||||
FRONTEND_REPO="${FRONTEND_REPO:-frontend-tutorial-framework}"
|
FRONTEND_REPO="${FRONTEND_REPO:-frontend-tutorial-framework}"
|
||||||
BASEIMAGE_PATH="${TAO_PATH}/${BASEIMAGE_REPO}"
|
BASEIMAGE_PATH="${TAO_PATH}/${BASEIMAGE_REPO}"
|
||||||
TEST_PATH="${TAO_PATH}/${TEST_REPO}"
|
TEST_PATH="${TAO_PATH}/${TEST_REPO}"
|
||||||
|
Loading…
Reference in New Issue
Block a user