homepage/about-filter.sh

14 lines
196 B
Bash
Raw Normal View History

2014-03-11 13:31:02 -06:00
#! /bin/sh
2015-10-29 08:43:15 -06:00
tryexec () {
command -v $1 >/dev/null && exec "$@"
}
tryexec pandoc -f markdown -t html
tryexec markdown
echo "<i>no markdown thingies found</i></p>"
echo "<pre>"
cat
echo "</pre>"