#!/bin/sh set -e empty=$(find -type d -empty | grep -v /.git/) || true if [ -n "$empty" ]; then echo "etckeeper warning: there are some empty directories, which git will ignore" >&2 fi