From 5dcef01dca8f45d16bae3329012751cf1cd368fa Mon Sep 17 00:00:00 2001 From: jsseidel Date: Sun, 16 Jun 2019 14:06:09 -0400 Subject: [PATCH] Fix for https://github.com/att/MkTechDocs/issues/24 --- bin/mktechdocs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mktechdocs b/bin/mktechdocs index b3f89d8..1e69af1 100755 --- a/bin/mktechdocs +++ b/bin/mktechdocs @@ -434,7 +434,7 @@ N=$(find . -type f | grep -c "\.pyt$") if [[ "$N" != "0" ]] ; then find . -type f | grep "\.pyt$" | sed 's/\.pyt//' | while read template ; do clog INFO "Rendering $template.pyt => $template.md" - $template.renderer $template.pyt > $template.md + /usr/bin/env python3 $template.renderer $template.pyt > $template.md normal_exit $? done RV=$? ; [[ $RV != 0 ]] && exit $RV @@ -444,7 +444,7 @@ N=$(find . -type f | grep -c "\.htmlt$") if [[ "$N" != "0" ]] ; then find . -type f | grep "\.htmlt$" | sed 's/\.htmlt//' | while read template ; do clog INFO "Rendering $template.htmlt => $template.html" - $template.renderer $template.htmlt > $template.html + /usr/bin/env python3 $template.renderer $template.htmlt > $template.html normal_exit $? done RV=$? ; [[ $RV != 0 ]] && exit $RV