From 5f205dde2257e2b877a0f0e0c248c8d22c77dd38 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 1 Feb 2021 10:49:34 -0500 Subject: [PATCH] fix #323 --- larbs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/larbs.sh b/larbs.sh index 53fc3ab..eb4e515 100644 --- a/larbs.sh +++ b/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" dir=$(mktemp -d) [ ! -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" cp -rfT "$dir" "$2" }