carbs

Cem's Auto Rice Bootstrapping Scripts
git clone git://git.ckyln.com/carbs.git
Log | Files | Refs | README | LICENSE

commit 753ce8e43f2e92295e9cafddb5c7f45d32360b9d
parent 80fc4eddea53d12ef16c2277f319a7a728b840d7
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu,  7 Nov 2019 11:29:15 +0300

refresh system

Diffstat:
Mcarbs | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/carbs b/carbs @@ -100,6 +100,13 @@ read ans [ "$ans" = "y" ] || die 'User exited' } +refreshsystem() { + out "Refreshing system" + sudo pacman -Sy || die "Could not refresh pacman db" + sudo pacman -Syu --noconfirm || die "Could not upgrade system" + msg "System up to date!" +} + makeinstall() { cd /tmp dir="$(mktemp -d)" @@ -239,7 +246,7 @@ if [ $interactive = 1 ]; then welcomepage sudo -V >/dev/null 2>&1 || sudouser $USER fi -sudo pacman -Sy || die 'Could not refresh pacman db' +refreshsystem yay -V >/dev/null 2>&1 || installyaybin installcsv dotfilesinstall $dotfiles