also clone submodules

This commit is contained in:
Luke Smith 2020-04-28 08:55:07 -04:00
parent d1262d2fbc
commit 979484d9e7
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

View file

@ -143,7 +143,7 @@ putgitrepo() { # Downloads a gitrepo $1 and places the files in $2 only overwrit
dir=$(mktemp -d) dir=$(mktemp -d)
[ ! -d "$2" ] && mkdir -p "$2" [ ! -d "$2" ] && mkdir -p "$2"
chown -R "$name":wheel "$dir" "$2" chown -R "$name":wheel "$dir" "$2"
sudo -u "$name" git clone -b "$branch" --depth 1 "$1" "$dir" >/dev/null 2>&1 sudo -u "$name" git clone --recursive -b "$branch" --depth 1 "$1" "$dir" >/dev/null 2>&1
sudo -u "$name" cp -rfT "$dir" "$2" sudo -u "$name" cp -rfT "$dir" "$2"
} }