Skip to content

Commit

Permalink
Corrections in detecting os.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwthm-in committed Dec 7, 2016
1 parent 6f39222 commit 56d6ece
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions superset_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@
mylog.log("INFO", "Installing Sueprset...")
mylog.log("INFO", "Detecting OS Version")

detected_paltform = platform.platform().lower()
if "Darwin" in detected_paltform:
detected_platform = platform.platform().lower()+platform.version().lower()
if "Darwin" in detected_platform:
os_name = 'Apple'
elif "ubuntu" in detected_paltform:
elif "ubuntu" in detected_platform:
os_name = 'Ubuntu'
elif "centos" in detected_paltform:
elif "centos" in detected_platform:
os_name = "CentOS"
else:
my.log("FATAL", "Detecting OS Failed. Committing Suicide.")
mylog.log("FATAL", "Detecting OS Failed. Committing Suicide.")
sys.exit(1)

def command_center(install_cmd):
Expand Down

0 comments on commit 56d6ece

Please sign in to comment.