]> gitweb.fluxo.info Git - templater.git/commitdiff
Check if implementation exists
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 28 Oct 2017 12:08:59 +0000 (10:08 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 28 Oct 2017 12:08:59 +0000 (10:08 -0200)
templater

index c2b20b89a933670ccd97272ecec91e7c3d28c1d1..377295a458ad3f9b5b8d7b000f50004fdd6b8996 100755 (executable)
--- a/templater
+++ b/templater
@@ -492,7 +492,11 @@ if [ -z "$MODULES" ]; then
   done
 else
   for module in $MODULES; do
-    templater_$module
+    if `__templater_implementations | grep -q "^$module"`; then
+      templater_$module
+    else
+      __templater_echo "No such module $module, skipping"
+    fi
   done
 fi