manage: fix supported system check so error reports offered

pull/931/head
Botspot 3 years ago
parent 2b08375a32
commit 835568a193

@ -38,6 +38,12 @@ dirhash() {
echo "$hash" echo "$hash"
} }
#check if hardware and OS is supported
if is_supported_system >/dev/null;then
supported=yes
else
supported=no
fi
if [ "$1" == 'multi-uninstall' ] || [ "$1" == 'multi-install' ];then if [ "$1" == 'multi-uninstall' ] || [ "$1" == 'multi-install' ];then
@ -92,10 +98,7 @@ elif [ "$1" == 'install' ] || [ "$1" == 'uninstall' ];then
fi fi
#check if hardware and OS is supported #check if hardware and OS is supported
if is_supported_system >/dev/null;then if [ "$supported" == no ];then
supported=yes
else
supported=no
echo -e "\e[103m\e[30mWARNING: YOUR SETUP IS UNSUPPORTED:\n$(is_supported_system)\e[39m\e[49m" echo -e "\e[103m\e[30mWARNING: YOUR SETUP IS UNSUPPORTED:\n$(is_supported_system)\e[39m\e[49m"
sleep 10 sleep 10
fi fi

Loading…
Cancel
Save