permissions and mkdir fix

This commit is contained in:
Luke Smith 2018-08-03 14:38:14 -04:00
parent 4bbfa6127b
commit 05ccd5977d

View file

@ -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
}