Scripts: Move arch check first in InstallFEX

Don't give people false hope that the script might work on distros that
aren't Ubuntu.

Fixes #5420
This commit is contained in:
Ryan Houdek committed 2026-04-15 13:01:37 -07:00
1 parent 2ea0de92f4
commit ce97ef0ab1
1 file changed
+5 -5
+5 -5
View File
@@ -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()]))