mirror of
https://github.com/esphome/esphome.git
synced 2025-11-16 14:55:50 +00:00
Merge remote-tracking branch 'origin/dev' into nrf52_core
This commit is contained in:
@@ -292,10 +292,7 @@ CONFIG_NEWLIB_LIBC=y
|
||||
def get_binary(name: str, version: str) -> str:
|
||||
binary_file = f"{name}-{version}"
|
||||
try:
|
||||
# If no exception was raised, the command was successful
|
||||
result = subprocess.check_output(
|
||||
[binary_file, "-version"], stderr=subprocess.STDOUT
|
||||
)
|
||||
result = subprocess.check_output([binary_file, "-version"])
|
||||
return binary_file
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user