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=