test/header.sh @ 8597527d94a5

Clean up project layout
author Steve Losh <steve@stevelosh.com>
date Thu, 08 Sep 2016 13:27:02 +0000
parents (none)
children (none)
#!/usr/bin/env bash

set -e

which figlet >/dev/null && FIG="figlet -kf $1" || FIG="echo"
which lolcat >/dev/null && LOL="lolcat --freq=0.25" || LOL="cat"

shift

echo

$FIG "$@" | sed -Ee 's/ +$$//' | tr -s '\n' | $LOL

echo