From 7a5abd73cb9c4f4bab10ff18f3ff0a97d6abc70b Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sun, 26 Jan 2020 17:57:15 -0800 Subject: [PATCH] Fix symlinks for submodules. This fixes the creation of symlinks for submodules when run from outside the repo. Fixes #7. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f065a91..85d9af8 100755 --- a/install.sh +++ b/install.sh @@ -66,7 +66,7 @@ install_dotfile_dir() { mkdir -p $(dirname "${TARGET}") ln -s -f "${dotfile}" "${TARGET}" done - git submodule status -- "${SRCDIR}" 2>/dev/null | \ + git -C "${BASEDIR}" submodule status -- "${SRCDIR}" 2>/dev/null | \ awk '{print $2}' | \ while read submodule ; do local FULLNAME="${BASEDIR}/${submodule}"