From deb8b62c12345b1609391fa1b1565302a6f63ceb Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Tue, 29 Oct 2019 17:39:13 -0700 Subject: [PATCH] Make install git pull before installing. --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index 29d93e8..8a0e00e 100755 --- a/install.sh +++ b/install.sh @@ -335,6 +335,8 @@ install_dotfiles() { } install_main() { + test -d ${BASEDIR}/.git && command -v git >/dev/null 2>&1 && \ + git -C ${BASEDIR} pull test $MINIMAL = 1 || command -v git >/dev/null 2>&1 && \ git -C ${BASEDIR} submodule update --init --recursive test $MINIMAL = 1 || prerequisites