remove interactivity
This commit is contained in:
@@ -27,8 +27,10 @@ for ext in "${EXTENSIONS[@]}"; do
|
||||
fi
|
||||
|
||||
echo "Installing extension: $ext..."
|
||||
~/.local/bin/gext install "$ext"
|
||||
~/.local/bin/gext enable "$ext"
|
||||
# The filesystem backend installs without GNOME Shell's confirmation dialog;
|
||||
# the extension loads at next login
|
||||
~/.local/bin/gext --filesystem install "$ext"
|
||||
~/.local/bin/gext --filesystem enable "$ext"
|
||||
echo " Installed and enabled: $ext"
|
||||
done
|
||||
|
||||
|
||||
+2
-13
@@ -155,8 +155,8 @@ echo "Configuring Bitwarden SSH agent..."
|
||||
. bitwarden.sh
|
||||
|
||||
# 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
|
||||
newgrp docker
|
||||
sudo systemctl enable docker.service
|
||||
sudo systemctl start docker.service
|
||||
|
||||
@@ -180,18 +180,7 @@ fi
|
||||
# Check whether the running kernel matches the installed modules — if not, a
|
||||
# newer kernel was installed during this run and a reboot is required
|
||||
if ! ls /usr/lib/modules/$(uname -r) > /dev/null 2>&1; then
|
||||
echo "A newer kernel has been installed, a reboot is recommended."
|
||||
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
|
||||
echo "A newer kernel has been installed. Please reboot when convenient."
|
||||
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."
|
||||
fi
|
||||
|
||||
@@ -48,6 +48,13 @@ if [[ -z "$UPDATE_REEXECED" ]]; then
|
||||
exec ~/.local/bin/update
|
||||
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=()
|
||||
[[ -n "$UPDATE_PULL_FAILED" ]] && FAILED+=("git pull")
|
||||
|
||||
|
||||
@@ -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