From 8893233d8f069761c0bdd73e89a471f1b1d1fbbb Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 9 Feb 2019 16:45:22 -0500 Subject: [PATCH] make parents in putgitrepo --- larbs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/larbs.sh b/larbs.sh index fafabcc..e626d43 100644 --- a/larbs.sh +++ b/larbs.sh @@ -114,7 +114,7 @@ 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) - [ ! -d "$2" ] && mkdir "$2" && chown -R "$name:wheel" "$2" + [ ! -d "$2" ] && mkdir -p "$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" cp -rfT "$dir/gitrepo" "$2"