From 88987ce2ba702b617decf7fd783cde42a6263ff7 Mon Sep 17 00:00:00 2001 From: Charadon Date: Fri, 30 Sep 2022 12:42:29 -0400 Subject: setup.sh: Fixed issue where templates couldn't copy correctly with relative path. --- setup.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'setup.sh') diff --git a/setup.sh b/setup.sh index 391d828..92b1a8f 100755 --- a/setup.sh +++ b/setup.sh @@ -91,6 +91,10 @@ install_dscip() { set -x mkdir -p "$PROJECT_LOCATION" PROJECT_LOCATION="$($REALPATH "$PROJECT_LOCATION")" + if [ ! "$TEMPLATE_DIR" = "" ]; + then + TEMPLATE_DIR="$($REALPATH "$TEMPLATE_DIR")" + fi cd "$PROJECT_LOCATION" || return 1 if [ -d "/usr/share/charadon/dscip" ]; # See if dscip is packaged/installed on system. then -- cgit 1.4.1-2-gfad0