Remove Android from update.sh

This commit is contained in:
Sam A. 2022-12-30 19:22:12 +01:00
parent 3a20d6ec93
commit d7e7259729
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -1,18 +1,14 @@
#!/usr/bin/env dash
if [ "$(uname -o)" = "Android" ]; then
pkg upgrade
elif [ "$(uname -o)" = "GNU/Linux" ]; then
[ "$(lsb_release -si)" = "Artix" ] && paru
[ "$(lsb_release -si)" = "Fedora" ] && sudo dnf upgrade
[ "$(lsb_release -si)" = "Artix" ] && paru
[ "$(lsb_release -si)" = "Fedora" ] && sudo dnf upgrade
if [ "$(lsb_release -si)" = "Debian" ] || [ "$(lsb_release -si)" = "Ubuntu" ]; then
sudo apt update
echo
sudo apt upgrade --purge
echo
sudo apt autoremove --purge --yes
fi
if [ "$(lsb_release -si)" = "Debian" ] || [ "$(lsb_release -si)" = "Ubuntu" ]; then
sudo apt update
echo
sudo apt upgrade --purge
echo
sudo apt autoremove --purge --yes
fi
command -v flatpak >/dev/null 2>&1 &&