forked from platformio/platformio-core
Fix Cygwin disabling
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
|
||||
from os import listdir
|
||||
from os.path import join
|
||||
from platform import system
|
||||
from sys import exit as sys_exit
|
||||
from traceback import format_exc
|
||||
|
||||
@ -70,6 +71,9 @@ def process_result(ctx, result, force, caller): # pylint: disable=W0613
|
||||
|
||||
def main():
|
||||
try:
|
||||
if "cygwin" in system().lower():
|
||||
raise exception.CygwinEnvDetected()
|
||||
|
||||
# https://urllib3.readthedocs.org
|
||||
# /en/latest/security.html#insecureplatformwarning
|
||||
try:
|
||||
|
@ -115,10 +115,6 @@ def get_systype():
|
||||
data = uname()
|
||||
type_ = data[0].lower()
|
||||
arch = data[4].lower() if data[4] else ""
|
||||
|
||||
if "cygwin" in type_:
|
||||
raise exception.CygwinEnvDetected()
|
||||
|
||||
return "%s_%s" % (type_, arch) if arch else type_
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user