Merge pull request #181 from makermelissa/master
Display which OS was detected
This commit is contained in:
commit
b5aeeec3b1
1 changed files with 4 additions and 3 deletions
|
|
@ -89,8 +89,9 @@ Raspberry Pi and installs Blinka
|
|||
print("{} detected.\n".format(pi_model))
|
||||
if not shell.is_raspberry_pi():
|
||||
shell.bail("Non-Raspberry Pi board detected. This must be run on a Raspberry Pi")
|
||||
if shell.get_os() != "Raspbian":
|
||||
shell.bail("Sorry. This script currently only runs on Raspberry Pi OS.")
|
||||
os_identifier = shell.get_os()
|
||||
if os_identifier != "Raspbian":
|
||||
shell.bail("Sorry, the OS detected was {}. This script currently only runs on Raspberry Pi OS.".format(os_identifier))
|
||||
if not shell.is_python3():
|
||||
shell.bail("You must be running Python 3. Older versions have now been deprecated.")
|
||||
shell.check_kernel_update_reboot_required()
|
||||
|
|
|
|||
Loading…
Reference in a new issue