make parents in putgitrepo
This commit is contained in:
parent
1659ea5a20
commit
8893233d8f
2
larbs.sh
2
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"
|
||||
|
Loading…
Reference in New Issue
Block a user