zerog

[archived] simple Parabola GNU/Linux post-install script
git clone git://git.hanetzok.net/zerog
Log | Files | Refs | README | LICENSE

commit b44a9ace521bf286063c1c1b2f8a9033dbf6d32e
parent 7ecc327c085cc275df2d4464b59b5832d663267f
Author: Markus Hanetzok <markus@hanetzok.net>
Date:   Tue,  9 Aug 2022 02:33:32 +0200

Fix error in src dir creation

Diffstat:
Mzerog | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/zerog b/zerog @@ -3,9 +3,9 @@ ### VARIABLES ### script_dir="$(dirname "$(realpath $0)")" +name="$(logname)" progs="$script_dir/progs.list" dotfiles="git://git.cybvik.xyz/dotfiles" -name="$(logname)" src="/home/$name/.local/src" giturl="git://git.cybvik.xyz" logfile="/tmp/zerog.log" @@ -45,7 +45,7 @@ get_dotfiles() { } suckless() { - [ -d "$src" ] || mkdir -p "$src" + [ -d "$src" ] || sudo -u "$name" mkdir -p "$src" cd "$src" && printf "### Installing suckless software ###\n" for program in dwm st dmenu slock; do sudo -u "$name" git clone "$giturl/$program" >/dev/null