From 05ccd5977d81addc93a87b4999f98a0f2a473589 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 3 Aug 2018 14:38:14 -0400 Subject: [PATCH] permissions and mkdir fix --- larbs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/larbs.sh b/larbs.sh index 22ed880..14ab9e5 100755 --- a/larbs.sh +++ b/larbs.sh @@ -122,6 +122,7 @@ putgitrepo() { # Downlods a gitrepo $1 and places the files in $2 only overwriti dir=$(mktemp -d) chown -R $name:wheel $dir sudo -u $name git clone --depth 1 $1 $dir/gitrepo &>/dev/null && + sudo -u $name mkdir -p "$2" && sudo -u $name cp -rT $dir/gitrepo $2 }