From 4bbfa6127b08e10cba0fea09a2e1a54d9b74029f Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 3 Aug 2018 14:34:53 -0400 Subject: [PATCH] putgitrepo fix --- larbs.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/larbs.sh b/larbs.sh index 31b6552..22ed880 100755 --- a/larbs.sh +++ b/larbs.sh @@ -120,8 +120,9 @@ systembeepoff() { dialog --infobox "Getting rid of that retarded error beep soun putgitrepo() { # Downlods a gitrepo $1 and places the files in $2 only overwriting conflicts dialog --infobox "Downloading and installing config files..." 4 60 dir=$(mktemp -d) - sudo -u $name git clone --depth 1 $1 $dir &>/dev/null && - sudo -u $name cp -rT $dir $2 + chown -R $name:wheel $dir + sudo -u $name git clone --depth 1 $1 $dir/gitrepo &>/dev/null && + sudo -u $name cp -rT $dir/gitrepo $2 } resetpulse() { dialog --infobox "Reseting Pulseaudio..." 4 50