Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Check for Fedora & Flatpak updates on boot
#/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