#!/bin/sh set -xe if which dot 2>&1 > /dev/null ; then dot -T png nodes.dot -o nodes.png else echo 'You need to install graphviz first' fi