Fix argument passing to doctor subcommand

When 'qmk setup' is started with the '-y' argument, this argument should be specified for 'qmk doctor' as well.
This commit is contained in:
Erovia
2020-03-11 13:39:13 +01:00
committed by skullydazed
parent 120ce557f1
commit bae2f1f1ee
+1 -1
View File
@@ -35,7 +35,7 @@ def setup(cli):
# Run `qmk_firmware/bin/qmk doctor` to check the rest of the environment out
if qmk_firmware.exists():
qmk_bin = qmk_firmware / 'bin' / 'qmk'
doctor = subprocess.run([sys.executable, str(qmk_bin), 'doctor'])
doctor = subprocess.run([sys.executable, str(qmk_bin), 'doctor', '-y' if cli.args.yes else ''])
if doctor.returncode != 0:
cli.log.error('Your build environment is not setup completely.')