Only run git if we have it.

This commit is contained in:
David Tomaschik
2019-04-17 12:00:41 -07:00
parent 3e87044901
commit 781142e8f2

View File

@@ -312,7 +312,8 @@ install_dotfiles() {
}
install_main() {
git -C ${BASEDIR} submodule update --init --recursive --depth 1
test $MINIMAL = 1 || command -v git >/dev/null 2>&1 && \
git -C ${BASEDIR} submodule update --init --recursive --depth 1
test $MINIMAL = 1 || prerequisites
test $INSTALL_PKGS = 1 && is_deb_system && install_apt_pkgs
install_dotfiles