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