Fix symlinks for submodules.

This fixes the creation of symlinks for submodules when
run from outside the repo.

Fixes #7.
This commit is contained in:
David Tomaschik
2020-01-26 17:57:15 -08:00
parent 07926d6673
commit 7a5abd73cb

View File

@@ -66,7 +66,7 @@ install_dotfile_dir() {
mkdir -p $(dirname "${TARGET}") mkdir -p $(dirname "${TARGET}")
ln -s -f "${dotfile}" "${TARGET}" ln -s -f "${dotfile}" "${TARGET}"
done done
git submodule status -- "${SRCDIR}" 2>/dev/null | \ git -C "${BASEDIR}" submodule status -- "${SRCDIR}" 2>/dev/null | \
awk '{print $2}' | \ awk '{print $2}' | \
while read submodule ; do while read submodule ; do
local FULLNAME="${BASEDIR}/${submodule}" local FULLNAME="${BASEDIR}/${submodule}"