putgitrepo fix

This commit is contained in:
Luke Smith 2018-08-03 14:34:53 -04:00
parent 66dcbb52da
commit 4bbfa6127b

View file

@ -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 putgitrepo() { # Downlods a gitrepo $1 and places the files in $2 only overwriting conflicts
dialog --infobox "Downloading and installing config files..." 4 60 dialog --infobox "Downloading and installing config files..." 4 60
dir=$(mktemp -d) dir=$(mktemp -d)
sudo -u $name git clone --depth 1 $1 $dir &>/dev/null && chown -R $name:wheel $dir
sudo -u $name cp -rT $dir $2 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 resetpulse() { dialog --infobox "Reseting Pulseaudio..." 4 50