Continue if pacman installation failed
This commit is contained in:
parent
2c9762d1bc
commit
d555a136f2
|
@ -101,8 +101,8 @@ checkForDependencies() {
|
||||||
[ ! -f "/etc/arch-release" ] && [ "$unameOutput" -ne 0 ] && return 1
|
[ ! -f "/etc/arch-release" ] && [ "$unameOutput" -ne 0 ] && return 1
|
||||||
sudo pacman --noconfirm --needed -Sy "${1}"
|
sudo pacman --noconfirm --needed -Sy "${1}"
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
echo "Couldn't install ${1}." >&2
|
echo "Couldn't install ${1}. We will continue without it."
|
||||||
exit 1
|
return 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue