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