carbs

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

commit 57dc05d3293c407353e20c1050b866541f6e9aef
parent 546d0cb15b8f3353e029011f5667e4926addea98
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue,  1 Oct 2019 11:19:19 +0300

add pacman -Sy

Diffstat:
Mcarbs | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/carbs b/carbs @@ -148,7 +148,7 @@ installyaybin() {\ sudouser() {\ warning "You don't seem to have sudo installed\nCarbs will now install sudo and add you\nto sudoers" - su -c "pacman -S sudo --noconfirm && \ + su -c "pacman -Sy && pacman -S sudo --noconfirm && \ printf '$1 ALL=(ALL) NOPASSWD: ALL\n' > /etc/sudoers.d/new" } @@ -207,6 +207,7 @@ if [ $interactive = 1 ]; then welcomepage sudo -V >/dev/null 2>&1 || sudouser $USER fi +sudo pacman -Sy || die 'Could not refresh pacman db' yay -V >/dev/null 2>&1 || installyaybin installcsv dotfilesinstall $dotfiles