update installdeps for opensuse

ID_LIKE in /etc/os-release changed from "suse" to "opensuse suse",
change to match *suse* in the string.
This commit is contained in:
Rafael Kitover 2018-06-06 06:47:56 -04:00
parent cafe905b6d
commit 0dc3e06c99
1 changed files with 6 additions and 2 deletions

View File

@ -159,8 +159,12 @@ linux_installdeps() {
archlinux_installdeps
elif [ -f /etc/solus-release ]; then
solus_installdeps
elif [ -f /etc/os-release ] && [ "$(. /etc/os-release; echo "$ID_LIKE")" = suse ]; then
elif [ -f /etc/os-release ]; then
case "$(. /etc/os-release; echo "$ID_LIKE")" in
*suse*)
suse_installdeps
;;
esac
else
error "Don't know how to install deps on your version of Linux"
fi