Display and log build host OS release

This commit is contained in:
zador-blood-stained 2016-06-27 13:22:49 +03:00
parent 9b1a0fc502
commit 7f0a3e16d7

View File

@ -342,6 +342,7 @@ prepare_host() {
if [[ $NO_APT_CACHER != yes ]]; then hostdeps="$hostdeps apt-cacher-ng"; fi
local codename=$(lsb_release -sc)
display_alert "Build host OS release" "${codename:-(unknown)}" "info"
if [[ -z $codename || "trusty wily xenial" != *"$codename"* ]]; then
display_alert "Host system support was not tested" "${codename:-(unknown)}" "wrn"
echo -e "Press \e[0;33m<Ctrl-C>\x1B[0m to abort compilation, \e[0;33m<Enter>\x1B[0m to ignore and continue"