Updated updater function

This commit is contained in:
Phil 2021-01-22 14:57:58 +00:00
parent d84c18879c
commit 29088cdcca

View File

@ -1,6 +1,5 @@
#!/bin/bash
## DOWNLOADED FROM GITHUB ##
# My Alias
@ -53,8 +52,12 @@ function update() {
if command -v apt >/dev/null; then
echo "Updating Apt Packages..."
sudo apt clean && sudo apt update && sudo apt --autoremove full-upgrade -y
else
echo "No apt binary found. Is this actually a Debian-based system?"
elif
if [ "$(grep -c "arch" /etc/os-release)" -gt 0 ]; then
echo "Updating Pacman Packages"
sudo pacman -Syu && sudo pacman -Sc
else
echo "No apt or pacman found. I guess your out of luck"
fi
}