diff options
author | Charadon <dev@iotib.net> | 2022-09-30 12:42:29 -0400 |
---|---|---|
committer | Charadon <dev@iotib.net> | 2022-09-30 12:42:29 -0400 |
commit | 88987ce2ba702b617decf7fd783cde42a6263ff7 (patch) | |
tree | 1d27156b69867a784c24ad3df0a19ab0e6b30431 | |
parent | 545ad2ba2842a8b054e8fdd218e95c5424955729 (diff) | |
download | dscip-88987ce2ba702b617decf7fd783cde42a6263ff7.tar.gz |
setup.sh: Fixed issue where templates couldn't copy correctly with relative path.
-rwxr-xr-x | setup.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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 |