zerog

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

commit 36c54c060778522335656e8279a39bd49c6c3330
parent 23e17c4aad23300806e9ca61211cdff0ce2e77b8
Author: Markus Hanetzok <markus@hanetzok.net>
Date:   Tue,  9 Aug 2022 02:57:02 +0200

Silenced more commands

Diffstat:
Mzerog | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/zerog b/zerog @@ -19,7 +19,7 @@ warning() { error() { printf "ERROR: $1\n" >> "$logfile" clear - printf "Error: Please check $logfile for more info" + printf "Error: Please check $logfile for more info\n" exit 1 } @@ -33,6 +33,7 @@ prepare() { } install_programs() { + printf "### Installing from progs.list ###\n" while read -r program; do printf "Installing $program\n" pacman -S --noconfirm --needed "$program" >/dev/null 2>&1 || @@ -42,8 +43,9 @@ install_programs() { get_dotfiles() { printf "### Installing dotfiles ###\n" - sudo -u "$name" git clone "$dotfiles" /tmp/dotfiles >/dev/null - sudo -u "$name" cp -rfT /tmp/dotfiles "/home/$name" + sudo -u "$name" git clone "$dotfiles" /tmp/dotfiles >/dev/null 2>&1 || + { warning "Could not clone dotfiles"; return 1; } + sudo -u "$name" cp -rfT /tmp/dotfiles "/home/$name" >/dev/null 2>&1 } suckless() { @@ -60,6 +62,7 @@ suckless() { } follow_up() { + printf "### Finishing touches ###\n" chsh -s /bin/zsh "$name" >/dev/null 2>&1 sudo -u "$name" mkdir -p "/home/$name/.cache/zsh/" sudo -u "$name" mkdir -p "/home/$name/.config/mpd/playlists/"