Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cloudmesh/burn/Imager.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def installed():
return r is not None

@staticmethod
@staticmethod
def install(force=False):
if os_is_mac():
return
Expand All @@ -27,6 +28,14 @@ def install(force=False):
os.system("sudo apt uninstall -y rpi-imager")
else:
Console.warning("Installation is not supported")
if os_is_mac():
return
if not Imager.installed() or force:
if os_is_linux() or os_is_pi():
Sudo.password()
os.system("sudo apt uninstall -y rpi-imager")
else:
Console.warning("Installation is not supported")

@staticmethod
def fetch(tag=None):
Expand Down