aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-28 10:08:59 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-10-28 10:08:59 -0200
commit0111b976856b382778d7c6b89c8aaad6ec3a56a5 (patch)
treea8490a15fffc4874f807118cdbf8342e3d68167c
parent75033b2ca3a177908c464d970860074813fc642a (diff)
downloadtemplater-0111b976856b382778d7c6b89c8aaad6ec3a56a5.tar.gz
templater-0111b976856b382778d7c6b89c8aaad6ec3a56a5.tar.bz2
Check if implementation exists
-rwxr-xr-xtemplater6
1 files changed, 5 insertions, 1 deletions
diff --git a/templater b/templater
index c2b20b8..377295a 100755
--- 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