Check for Fedora & Flatpak updates on boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
echo "Ready to check for Fedora updates?" | |
select yn in "Yes" "No"; do | |
case $yn in | |
Yes ) sudo dnf upgrade --refresh --best --allowerasing; break;; | |
No ) exit;; | |
esac | |
done | |
echo "Ready to check for Flatpak updates?" | |
select yn in "Yes" "No"; do | |
case $yn in | |
Yes ) flatpak update; break;; | |
No ) exit;; | |
esac | |
done | |
$SHELL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment