From 4b37169735cb48cb33f95ca7bd987e9dd9b25120 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Tue, 4 Jun 2019 08:32:15 -0700 Subject: [PATCH] Fix git submodule call to use BASEDIR. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 72415d0..68af95e 100755 --- a/install.sh +++ b/install.sh @@ -49,7 +49,7 @@ prerequisites() { install_dotfile_dir() { local SRCDIR="${1}" local dotfile - local submodule_prune="$(git submodule status -- "${SRCDIR}" 2>/dev/null | \ + local submodule_prune="$(git -C "${BASEDIR}" submodule status -- "${SRCDIR}" 2>/dev/null | \ awk '{print $2}' | \ while read submod ; do echo -n " -o -path ${BASEDIR}/${submod}"