From 781142e8f2e150be589a6cb0479422c8a1852032 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Wed, 17 Apr 2019 12:00:41 -0700 Subject: [PATCH] Only run git if we have it. --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f800c72..fa3ccc3 100755 --- a/install.sh +++ b/install.sh @@ -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