From 09af4b94333a6c565f19f66d221c401a6a851c43 Mon Sep 17 00:00:00 2001 From: Jason Mehring Date: Thu, 24 Dec 2015 04:46:50 -0500 Subject: [PATCH] functions.sh: Allow generic TEMPLATE_FLAVOR_DIR that matches all flavors, or even no flavors Use an asterisk in place of a '+flavor' to indicate a template directory to be applied to all flavors, or no flavor at all. *:/home/user/qubes/qubes-src/some-repo/template-directory --- functions.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions.sh b/functions.sh index 99639c5..38c1589 100755 --- a/functions.sh +++ b/functions.sh @@ -209,6 +209,11 @@ templateDirs() { elif [ "${element:0:1}" == "+" -a "${element%:*}" == "+${template_flavor}" ]; then eval echo -e "${element#*:}" match=1 + + # Generic template directory that matches all flavors, or even no flavors + elif [ "${element:0:1}" == "*" ]; then + eval echo -e "${element#*:}" + match=1 fi done