mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 09:00:17 +02:00
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:
1 file changed
+5
-5
@@ -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()]))
|
||||
|
||||
|
||||
Reference in new issue
Block a user