misc: Warn users with weird computers

A user seemed to experience a weird golang issue when they had deps from
both package managers installed. I won't block or fail their install,
but we can print a warning message so that someone sees it in their
logs.
This commit is contained in:
James Shubin
2019-08-23 22:10:34 -04:00
parent bafd7ba282
commit 18872194af

View File

@@ -34,6 +34,11 @@ if [ -z "$YUM" -a -z "$APT" -a -z "$BREW" -a -z "$PACMAN" ]; then
exit 1
fi
# I think having both installed confused golang somehow...
if [ ! -z "$YUM" ] && [ ! -z "$APT" ]; then
echo "You have both $APT and $YUM installed. Please check your deps manually."
fi
if [ ! -z "$YUM" ]; then
$sudo_command $YUM install -y libvirt-devel
$sudo_command $YUM install -y augeas-devel