From 87239b20341b69fd79ee2d39420b333dce06c495 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Mon, 14 Aug 2023 20:57:47 -0700 Subject: [PATCH] fix up change --- install.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 012d95c..73deb48 100755 --- a/install.sh +++ b/install.sh @@ -368,10 +368,12 @@ install_dotfiles() { } install_main() { - test -d "${BASEDIR}/.git" && command -v git >/dev/null 2>&1 && \ - git -C "${BASEDIR}" pull --ff-only - test "$MINIMAL" = 1 || ( command -v git >/dev/null 2>&1 && \ - git -C "${BASEDIR}" submodule update --init --recursive ) + if test -d "${BASEDIR}/.git" ; then + command -v git >/dev/null 2>&1 && \ + git -C "${BASEDIR}" pull --ff-only + test "$MINIMAL" = 1 || ( command -v git >/dev/null 2>&1 && \ + git -C "${BASEDIR}" submodule update --init --recursive ) + fi test "$MINIMAL" = 1 || prerequisites test "$INSTALL_PKGS" = 1 && is_deb_system && install_apt_pkgs install_dotfiles