Commit 857f4cb8 authored by jspiegel's avatar jspiegel

fix sys.platform/platform.system typos

parent a81bce48
...@@ -497,7 +497,7 @@ def determine_bash_timeout_vs_gtimeout(): ...@@ -497,7 +497,7 @@ def determine_bash_timeout_vs_gtimeout():
whether the bash terminal is able to use the bash function timeout or gtimeout whether the bash terminal is able to use the bash function timeout or gtimeout
""" """
if platform.system == "linux": if sys.platform.lower() in ["linux", "linux2"]:
# Should be true and default installed in all Linux machines # Should be true and default installed in all Linux machines
return "timeout" return "timeout"
......
...@@ -59,7 +59,6 @@ import shutil ...@@ -59,7 +59,6 @@ import shutil
import json import json
import argparse import argparse
import sys import sys
import platform
def change_permissions(file_path): def change_permissions(file_path):
""" """
...@@ -647,7 +646,7 @@ print("BE SURE TO RUN THIS SCRIPT WITH SUDO (LINUX/MACOS) OR ADMINISTRATOR") ...@@ -647,7 +646,7 @@ print("BE SURE TO RUN THIS SCRIPT WITH SUDO (LINUX/MACOS) OR ADMINISTRATOR")
print("(WINDOWS) PRIVILEGES!") print("(WINDOWS) PRIVILEGES!")
print("") print("")
if sys.platform == "darwin" or platform.system() == "Linux": if sys.platform.lower() in ["darwin", "linux", "linux2"]:
if os.getuid() != 0: if os.getuid() != 0:
printout = "\n\nMust run this script with `sudo` privileges.\n\t" printout = "\n\nMust run this script with `sudo` privileges.\n\t"
printout = printout + "Please retry running with `sudo` privileges.\n\n" printout = printout + "Please retry running with `sudo` privileges.\n\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment