1
1
Fork 0

updated update function to include manjaro

This commit is contained in:
david 2023-09-17 06:04:30 +02:00
parent 15ddb9d82d
commit df8aee73ca
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ update() {
fi
else
#if not Darwin then its probably Linux
systems="ubuntu arch raspbian antergos elementary"
systems="ubuntu arch raspbian antergos elementary manjaro"
issue="$(cat /etc/issue)"
for item in $systems; do
echo $issue | grep -i $item >> /dev/null
@ -125,7 +125,7 @@ update() {
log error "Something went wrong while running ${bold}apt${normal}."
fi
;;
arch|antergos)
arch|antergos|manjaro)
log info "Arch Linux detected. Using ${bold}pacman${normal} to update packages."
sudo pacman -Syu --noconfirm
if [ $? -eq 0 ]; then