diff --git a/Scripts/InstallFEX.py b/Scripts/InstallFEX.py index 2cea36c58..38f09fa29 100755 --- a/Scripts/InstallFEX.py +++ b/Scripts/InstallFEX.py @@ -361,6 +361,11 @@ def IsSupportedKernel(): return version_check(GetKernelVersion()) >= version_check("5.15") def main(): + if not IsSupportedDistro(): + Distro = GetDistro() + print ( "'{} {}' is not a supported distro".format(Distro[0], Distro[1])) + ExitWithStatus(-1) + # Only run on supported arch if not IsSupportedArch(): print ( "{} is not a supported architecture".format(GetArch())) @@ -371,11 +376,6 @@ def main(): print ( "Kernel {} is too old. FEX needs 5.15 minimum".format(GetKernelVersion())) ExitWithStatus(-1) - if not IsSupportedDistro(): - Distro = GetDistro() - print ( "'{} {}' is not a supported distro".format(Distro[0], Distro[1])) - ExitWithStatus(-1) - if GetDistro()[0] == "ubuntu": print ("Getting PPA status: {}".format(("NotInstalled", "Installed")[GetPPAStatus()]))