mirror of
https://github.com/basecamp/omarchy.git
synced 2025-08-04 07:39:24 +00:00
@ -31,6 +31,10 @@ done
|
|||||||
echo -e "\e[32m\nUpdate system packages\e[0m"
|
echo -e "\e[32m\nUpdate system packages\e[0m"
|
||||||
yay -Syu --noconfirm
|
yay -Syu --noconfirm
|
||||||
|
|
||||||
|
# Offer to reboot if the kernel has been changed
|
||||||
|
if [ "$(uname -r | sed 's/-arch/\.arch/')" != "$(pacman -Q linux | awk '{print $2}')" ]; then
|
||||||
|
gum confirm "Linux kernel has been updated. Reboot?" && sudo reboot now
|
||||||
|
fi
|
||||||
|
|
||||||
# Back to where we came from
|
# Back to where we came from
|
||||||
cd - >/dev/null
|
cd - >/dev/null
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user