fix #323
This commit is contained in:
parent
1e48585252
commit
5f205dde22
1 changed files with 1 additions and 1 deletions
2
larbs.sh
2
larbs.sh
|
@ -131,7 +131,7 @@ putgitrepo() { # Downloads a gitrepo $1 and places the files in $2 only overwrit
|
||||||
[ -z "$3" ] && branch="master" || branch="$repobranch"
|
[ -z "$3" ] && branch="master" || branch="$repobranch"
|
||||||
dir=$(mktemp -d)
|
dir=$(mktemp -d)
|
||||||
[ ! -d "$2" ] && mkdir -p "$2"
|
[ ! -d "$2" ] && mkdir -p "$2"
|
||||||
chown -R "$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 "$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