Merge pull request #1 from mikejbc/putgitrepo-typo-fix

putgitrepo typo in larbs.sh fix
This commit is contained in:
Michał 2020-03-09 00:33:52 +01:00 committed by GitHub
commit e5f30a7d8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,7 +142,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" && chown -R "$name:wheel" "$2" [ ! -d "$2" ] && mkdir -p "$2" && chown -R "$name:wheel" "$2"
chown -R "$name:wheel" "$dir" chown -R "$name:wheel" "$dir"
sudo -u "$name" git clone -b "$branch" --depth 1 "$1" "$dir/gitrepo" >/dev/null 2>&1 && sudo -u "$name" git clone -b "$branch" --depth 1 "$1" "$dir/gitrepo" >/dev/null 2>&1
sudo -u "$name" cp -rfT "$dir/gitrepo" "$2" sudo -u "$name" cp -rfT "$dir/gitrepo" "$2"
} }