From 6380ce9178d70db22f6aa9f234eafb320d6b7711 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 3 May 2025 23:37:53 +1200 Subject: [PATCH] Tidy --- templates/test_template.sh | 5 +++++ 1 file changed, 5 insertions(+) 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")