From d0c84e4d02dde177c97ac8fab66c01bb8a84ee6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Tue, 8 May 2018 12:44:38 +0200 Subject: [PATCH] Make tfw.sh work with different repo names --- hack/tfw.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/tfw.sh b/hack/tfw.sh index 749adfb..37073da 100755 --- a/hack/tfw.sh +++ b/hack/tfw.sh @@ -5,10 +5,10 @@ set -o errtrace shopt -s expand_aliases [ "$(uname)" == "Darwin" ] && alias readlink="greadlink" || : -SCRIPT_DIR="$(dirname $(readlink -f $0))" +SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" TAO_PATH="${TAO_PATH:-$SCRIPT_DIR/../..}" 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}" BASEIMAGE_PATH="${TAO_PATH}/${BASEIMAGE_REPO}" TEST_PATH="${TAO_PATH}/${TEST_REPO}"