clone with submodules, close #326
This commit is contained in:
parent
9452e29cf0
commit
845b4b4604
2 changed files with 2 additions and 3 deletions
|
@ -1,3 +1,2 @@
|
||||||
|
custom: ["https://lukesmith.xyz/donate.html"]
|
||||||
github: lukesmithxyz
|
github: lukesmithxyz
|
||||||
custom: ["https://lukesmith.xyz/donate", "https://paypal.me/lukemsmith", "https://lukesmith.xyz/crypto"]
|
|
||||||
patreon: lukesmith
|
|
||||||
|
|
2
larbs.sh
2
larbs.sh
|
@ -132,7 +132,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 "$name":wheel "$dir" "$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"
|
sudo -u "$name" cp -rfT "$dir" "$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue