remove interactivity

This commit is contained in:
2026-10-20 07:30:04 -06:00
parent 76fceee115
commit d8d93a45b5
6 changed files with 20 additions and 18 deletions
+4 -2
View File
@@ -27,8 +27,10 @@ for ext in "${EXTENSIONS[@]}"; do
fi fi
echo "Installing extension: $ext..." echo "Installing extension: $ext..."
~/.local/bin/gext install "$ext" # The filesystem backend installs without GNOME Shell's confirmation dialog;
~/.local/bin/gext enable "$ext" # the extension loads at next login
~/.local/bin/gext --filesystem install "$ext"
~/.local/bin/gext --filesystem enable "$ext"
echo " Installed and enabled: $ext" echo " Installed and enabled: $ext"
done done
+2 -13
View File
@@ -155,8 +155,8 @@ echo "Configuring Bitwarden SSH agent..."
. bitwarden.sh . bitwarden.sh
# Add the current user to the docker group and start the Docker daemon # Add the current user to the docker group and start the Docker daemon
# Group membership takes effect at next login (newgrp would start an interactive shell)
sudo usermod -aG docker $USER sudo usermod -aG docker $USER
newgrp docker
sudo systemctl enable docker.service sudo systemctl enable docker.service
sudo systemctl start docker.service sudo systemctl start docker.service
@@ -180,18 +180,7 @@ fi
# Check whether the running kernel matches the installed modules — if not, a # Check whether the running kernel matches the installed modules — if not, a
# newer kernel was installed during this run and a reboot is required # newer kernel was installed during this run and a reboot is required
if ! ls /usr/lib/modules/$(uname -r) > /dev/null 2>&1; then if ! ls /usr/lib/modules/$(uname -r) > /dev/null 2>&1; then
echo "A newer kernel has been installed, a reboot is recommended." echo "A newer kernel has been installed. Please reboot when convenient."
read -rp "Reboot now? [y/N] " response
case "$response" in
[yY][eE][sS]|[yY])
echo "Rebooting..."
sudo reboot
;;
*)
echo "Reboot skipped. Please remember to reboot when convenient."
exit 0
;;
esac
else else
echo "Kernel is up to date, no reboot needed. You may want to consider a reboot if other significant software was updated or installed." echo "Kernel is up to date, no reboot needed. You may want to consider a reboot if other significant software was updated or installed."
fi fi
+7
View File
@@ -48,6 +48,13 @@ if [[ -z "$UPDATE_REEXECED" ]]; then
exec ~/.local/bin/update exec ~/.local/bin/update
fi fi
# Ask for the password once, then keep sudo's cached credentials fresh until
# update exits, so long-running hooks don't stop for a password again.
sudo -v || exit 1
while kill -0 $$ 2>/dev/null; do sudo -n -v; sleep 60; done 2>/dev/null &
SUDO_KEEPALIVE_PID=$!
trap 'kill "$SUDO_KEEPALIVE_PID" 2>/dev/null' EXIT
FAILED=() FAILED=()
[[ -n "$UPDATE_PULL_FAILED" ]] && FAILED+=("git pull") [[ -n "$UPDATE_PULL_FAILED" ]] && FAILED+=("git pull")
+1 -1
View File
@@ -11,7 +11,7 @@ remove_packages "${REMOVE_PACMAN[@]}"
remove_flatpaks "${REMOVE_FLATPAKS[@]}" remove_flatpaks "${REMOVE_FLATPAKS[@]}"
echo "Updating Arch..." echo "Updating Arch..."
sudo pacman -Syu sudo pacman -Syu --noconfirm
echo "Checking for new packages..." echo "Checking for new packages..."
install_packages "${SYSTEM_UTILS[@]}" install_packages "${SYSTEM_UTILS[@]}"
+3 -2
View File
@@ -6,11 +6,12 @@ YAY_FLAGS="--noconfirm --answerdiff=None --answeredit=None --answerclean=None"
if ! yay -Sua $YAY_FLAGS 2>/dev/null; then if ! yay -Sua $YAY_FLAGS 2>/dev/null; then
echo "yay -Sua returned an error. Let's rebuild YAY." echo "yay -Sua returned an error. Let's rebuild YAY."
sudo pacman -R yay sudo pacman -R --noconfirm yay
cd /tmp cd /tmp
rm -rf yay
git clone https://aur.archlinux.org/yay.git git clone https://aur.archlinux.org/yay.git
cd yay cd yay
makepkg -si makepkg -si --noconfirm
cd .. cd ..
rm -rf yay rm -rf yay
cd cd
+3
View File
@@ -1,5 +1,8 @@
#!/bin/bash #!/bin/bash
# Answer yes to any mise prompt (e.g. trusting config files)
export MISE_YES=1
echo "Updating mise..." echo "Updating mise..."
mise self-update -y mise self-update -y