Actually do the update at the point is is supposed to be done

This commit is contained in:
2026-01-16 05:53:04 +01:00
parent 8cdba1906f
commit 54b4b44b7a

View File

@@ -14,12 +14,12 @@ if ! which yay >/dev/null 2>&1; then
cd ..
rm -fr yay
fi
yay -Syu --needed --noconfirm curl git neovim pacman-contrib yaycache
yay -S --needed --noconfirm curl git neovim pacman-contrib yaycache
[ ! -e /usr/local/bin/vim ] && sudo ln -s /usr/bin/nvim /usr/local/bin/vim
# Backup system
if which btrfs >/dev/null; then
yay -Syu --needed --noconfirm snapper
yay -S --needed --noconfirm snapper
[ ! -f /etc/snapper/configs/root ] && sudo snapper -c root create-config /
[ ! $(sudo awk -F '"' '/NUMBER_LIMIT=/ {print $2}' /etc/snapper/configs/root) -eq $BACKUP_LIMIT ] && sudo sed -i.bak "s/\(NUMBER_LIMIT=\"\).*\"/\1$BACKUP_LIMIT\"/" /etc/snapper/configs/root