From 845b4b4604bc428245e1bf88ee9a295f6bfa25ae Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 18 Feb 2021 17:49:36 -0500 Subject: [PATCH] clone with submodules, close #326 --- FUNDING.yml | 3 +-- larbs.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/FUNDING.yml b/FUNDING.yml index f8e6076..c7c9a22 100644 --- a/FUNDING.yml +++ b/FUNDING.yml @@ -1,3 +1,2 @@ +custom: ["https://lukesmith.xyz/donate.html"] github: lukesmithxyz -custom: ["https://lukesmith.xyz/donate", "https://paypal.me/lukemsmith", "https://lukesmith.xyz/crypto"] -patreon: lukesmith diff --git a/larbs.sh b/larbs.sh index eb4e515..a071fc8 100644 --- a/larbs.sh +++ b/larbs.sh @@ -132,7 +132,7 @@ putgitrepo() { # Downloads a gitrepo $1 and places the files in $2 only overwrit dir=$(mktemp -d) [ ! -d "$2" ] && mkdir -p "$2" chown "$name":wheel "$dir" "$2" - sudo -u "$name" git clone --recursive -b "$branch" --depth 1 "$1" "$dir" >/dev/null 2>&1 + sudo -u "$name" git clone --recursive -b "$branch" --depth 1 --recurse-submodules "$1" "$dir" >/dev/null 2>&1 sudo -u "$name" cp -rfT "$dir" "$2" }