scripts: cros_sdk: inline chroot_command
No need for this sep var.
BUG=b:191307774
TEST=`cros_sdk` still works
Change-Id: Ie872ff0e7840ff4c5fe7512b74362c2eb5ff127d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4199758
Auto-Submit: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Commit-Queue: Brian Norris <briannorris@chromium.org>
diff --git a/scripts/cros_sdk.py b/scripts/cros_sdk.py
index 25f6550..307e900 100644
--- a/scripts/cros_sdk.py
+++ b/scripts/cros_sdk.py
@@ -1067,7 +1067,6 @@
sdk_latest_version, bootstrap_latest_version
)
options = parser.parse_args(argv)
- chroot_command = options.commands
# Some basic checks first, before we ask for sudo credentials.
cros_build_lib.AssertOutsideChroot()
@@ -1141,7 +1140,7 @@
getattr(options, x.dest) for x in commands._group_actions
)
# pylint: enable=protected-access
- options.enter |= bool(chroot_command)
+ options.enter |= bool(options.commands)
if (
options.delete
@@ -1494,6 +1493,6 @@
options.reclient_dir,
options.reproxy_cfg_file,
options.working_dir,
- chroot_command,
+ options.commands,
)
sys.exit(ret.returncode)