From a6df743476cef41c8d3ae9f4f167fe06894395d7 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Mon, 30 Oct 2017 19:34:34 -0700 Subject: [PATCH] Improve minimal mode. --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 49adcf0..6a1f4cc 100755 --- a/install.sh +++ b/install.sh @@ -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 }