larbs

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 119df49b2aac26125597a60f6b42c6d5badef2be
parent ebfbb4ac02ce6ae0278ff487dd752a37d0403956
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sun, 27 Jan 2019 16:03:50 -0500

dotfiles deploy fix

Diffstat:
Mlarbs.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/larbs.sh b/larbs.sh @@ -114,9 +114,9 @@ installationloop() { \ 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) - chown -R "$name":wheel "$dir" + [ ! -d "$2" ] && mkdir "$2" && chown -R "$name:wheel" "$2" + chown -R "$name:wheel" "$dir" sudo -u "$name" git clone --depth 1 "$1" "$dir/gitrepo" >/dev/null 2>&1 && - sudo -u "$name" mkdir -p "$2" && sudo -u "$name" cp -rfT "$dir"/gitrepo "$2" }