Compare commits
2 Commits
94b836f96e
...
3424fbc3ac
| Author | SHA1 | Date | |
|---|---|---|---|
| 3424fbc3ac | |||
| 6b34c42f41 |
25
arch_update
25
arch_update
@@ -15,6 +15,31 @@ fi
|
||||
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
|
||||
|
||||
# Display updates beforehand
|
||||
echo -e '\nChecking for updates ...' >&2
|
||||
(
|
||||
checkupdates
|
||||
yay -Qua
|
||||
) | sort -u
|
||||
|
||||
# Ask to proceed
|
||||
while true; do
|
||||
echo -e '\nDo you want to start the update? Y/n' >&2
|
||||
read -r answer || exit 1
|
||||
|
||||
case $answer in
|
||||
'' | [yY])
|
||||
break
|
||||
;;
|
||||
[nN])
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo -e 'Answer with y or n.' >&2
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Backup system
|
||||
if which btrfs >/dev/null 2>&1; then
|
||||
yay -S --needed --noconfirm snapper
|
||||
|
||||
Reference in New Issue
Block a user