Updated updater function
This commit is contained in:
parent
d84c18879c
commit
29088cdcca
@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
## DOWNLOADED FROM GITHUB ##
|
|
||||||
|
|
||||||
# My Alias
|
# My Alias
|
||||||
|
|
||||||
@ -53,8 +52,12 @@ function update() {
|
|||||||
if command -v apt >/dev/null; then
|
if command -v apt >/dev/null; then
|
||||||
echo "Updating Apt Packages..."
|
echo "Updating Apt Packages..."
|
||||||
sudo apt clean && sudo apt update && sudo apt --autoremove full-upgrade -y
|
sudo apt clean && sudo apt update && sudo apt --autoremove full-upgrade -y
|
||||||
else
|
elif
|
||||||
echo "No apt binary found. Is this actually a Debian-based system?"
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user