forked from platformio/platformio-core
Fix bug with "env_default" when "pio run -e" is used
This commit is contained in:
1 parent
eee6685c59
commit
3edc336f62
5 files changed
+12
-6
No files matched your search
@@ -14,7 +14,7 @@
|
||||
|
||||
import sys
|
||||
|
||||
VERSION = (2, 9, 1)
|
||||
VERSION = (2, 9, "2.dev0")
|
||||
__version__ = ".".join([str(s) for s in VERSION])
|
||||
|
||||
__title__ = "platformio"
|
||||
|
||||
@@ -81,7 +81,8 @@ def cli(ctx, environment, target, upload_port, # pylint: disable=R0913,R0914
|
||||
|
||||
envname = section[4:]
|
||||
if ((environment and envname not in environment) or
|
||||
(env_default and envname not in env_default)):
|
||||
(not environment and env_default and
|
||||
envname not in env_default)):
|
||||
# echo("Skipped %s environment" % style(envname, fg="yellow"))
|
||||
continue
|
||||
|
||||
|
||||
Reference in new issue
Block a user