diff --git a/templates/test_template.sh b/templates/test_template.sh index 5fb2809..afd38d1 100755 --- a/templates/test_template.sh +++ b/templates/test_template.sh @@ -4,6 +4,9 @@ SCRIPT_DIR=$(dirname "$0") TEMPLATE="$1" +# make sure TEMPLATE doesn't end with a / +TEMPLATE=$(basename "$TEMPLATE") + function die() { echo "$1" exit 1 @@ -22,6 +25,8 @@ fi # for now, we need to build and locally install to test the template. Check if it's up to date. +title "Checking template $TEMPLATE" + HASH1=$(ds hash "$SCRIPT_DIR/$TEMPLATE") HASH2=$(ds hash "/opt/dropshell/templates/$TEMPLATE")