updated update function to include manjaro
This commit is contained in:
parent
15ddb9d82d
commit
df8aee73ca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue