remove interactivity
This commit is contained in:
@@ -11,7 +11,7 @@ remove_packages "${REMOVE_PACMAN[@]}"
|
||||
remove_flatpaks "${REMOVE_FLATPAKS[@]}"
|
||||
|
||||
echo "Updating Arch..."
|
||||
sudo pacman -Syu
|
||||
sudo pacman -Syu --noconfirm
|
||||
|
||||
echo "Checking for new packages..."
|
||||
install_packages "${SYSTEM_UTILS[@]}"
|
||||
|
||||
+3
-2
@@ -6,11 +6,12 @@ YAY_FLAGS="--noconfirm --answerdiff=None --answeredit=None --answerclean=None"
|
||||
|
||||
if ! yay -Sua $YAY_FLAGS 2>/dev/null; then
|
||||
echo "yay -Sua returned an error. Let's rebuild YAY."
|
||||
sudo pacman -R yay
|
||||
sudo pacman -R --noconfirm yay
|
||||
cd /tmp
|
||||
rm -rf yay
|
||||
git clone https://aur.archlinux.org/yay.git
|
||||
cd yay
|
||||
makepkg -si
|
||||
makepkg -si --noconfirm
|
||||
cd ..
|
||||
rm -rf yay
|
||||
cd
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Answer yes to any mise prompt (e.g. trusting config files)
|
||||
export MISE_YES=1
|
||||
|
||||
echo "Updating mise..."
|
||||
mise self-update -y
|
||||
|
||||
|
||||
Reference in New Issue
Block a user