Skip to content

Instantly share code, notes, and snippets.

@orschiro
Created April 11, 2018 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orschiro/3013d6d7e8648a92a43bf4d4695bd9b9 to your computer and use it in GitHub Desktop.
Save orschiro/3013d6d7e8648a92a43bf4d4695bd9b9 to your computer and use it in GitHub Desktop.
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