From 75167551067f8a070e64e42473996391204e56b1 Mon Sep 17 00:00:00 2001 From: Jackson Law <178053+jlaw@users.noreply.github.com> Date: Fri, 24 Apr 2020 02:54:39 -0700 Subject: [PATCH] fix: chown parent directory --- larbs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/larbs.sh b/larbs.sh index 32a1dd2..b3fc177 100644 --- a/larbs.sh +++ b/larbs.sh @@ -71,7 +71,7 @@ adduserandpass() { \ dialog --infobox "Adding user \"$name\"..." 4 50 useradd -m -g wheel -s /bin/bash "$name" >/dev/null 2>&1 || usermod -a -G wheel "$name" && mkdir -p /home/"$name" && chown "$name":wheel /home/"$name" - repodir="/home/$name/.local/src"; mkdir -p "$repodir"; chown -R "$name":wheel "$repodir" + repodir="/home/$name/.local/src"; mkdir -p "$repodir"; chown -R "$name":wheel $(dirname "$repodir") echo "$name:$pass1" | chpasswd unset pass1 pass2 ;}