From df1edce5c69b15a5a25cd75608d87cd7fb472182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sat, 2 Oct 2021 12:20:19 +0200 Subject: [PATCH] Only checkout submodules if in git --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index aa5fb45..60fabfb 100755 --- a/install.sh +++ b/install.sh @@ -11,7 +11,7 @@ set -o nounset DOTDIR="/var/lib/dotfiles" _SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -git submodule update --init +[[ -e './.git' ]] && git submodule update --init if [[ "$(readlink "${_SCRIPT_DIR}")" != "${DOTDIR}" ]] && [[ "${_SCRIPT_DIR}" != "${DOTDIR}" ]] ; then if [[ -e "${DOTDIR}" ]] ; then