From f10afcb58ef815c4cb81cbcac38fa60e644175b0 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Sun, 16 Jan 2022 10:35:59 +0200 Subject: [PATCH] allow templating from other folder.. --- build_static.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_static.sh b/build_static.sh index d613951..fc58ed1 100644 --- a/build_static.sh +++ b/build_static.sh @@ -74,10 +74,11 @@ _replace_style() { _replace() { - cat index.html | _replace_links | _replace_config | _replace_style + cat "$SELFDIR"/index.html | _replace_links | _replace_config | _replace_style } +SELFDIR=$( dirname $( readlink -f "$0") ) CONFIG= STYLE= LINKS=