From d7e725972969f301979b77d67fbfa23c1658373d Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Fri, 30 Dec 2022 19:22:12 +0100 Subject: [PATCH] Remove Android from update.sh --- scripts/.local/bin/update.sh | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/scripts/.local/bin/update.sh b/scripts/.local/bin/update.sh index 51de17c..54418e8 100755 --- a/scripts/.local/bin/update.sh +++ b/scripts/.local/bin/update.sh @@ -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 &&