#!/bin/sh set -ev rm -rf $0.dir mkdir $0.dir cd $0.dir cat > top.fac < foo/hello | mkdir -p foo && echo goodbye > foo/goodbye EOF git init git add top.fac ${FAC:-../../fac} rm -rf foo ${FAC:-../../fac} foo/goodbye rm -rf foo ${FAC:-../../fac} foo/hello exit 0