Improve minimal mode.

This commit is contained in:
David Tomaschik
2017-10-30 19:34:34 -07:00
parent 4edf1e6b01
commit a6df743476

View File

@@ -60,7 +60,11 @@ function install_git {
if [[ -d ${DESTDIR}/.git ]] ; then
( cd ${DESTDIR} ; git pull -q )
else
git clone ${REPO} ${DESTDIR}
if [[ ${MINIMAL} -eq 1 ]] ; then
git clone --depth 1 ${REPO} ${DESTDIR}
else
git clone ${REPO} ${DESTDIR}
fi
fi
}