Created
April 11, 2018 07:17
-
-
Save orschiro/3013d6d7e8648a92a43bf4d4695bd9b9 to your computer and use it in GitHub Desktop.
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