summaryrefslogtreecommitdiffstats
path: root/py/mock.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/mock.py')
-rwxr-xr-xpy/mock.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/mock.py b/py/mock.py
index 5661dff..e7790f0 100755
--- a/py/mock.py
+++ b/py/mock.py
@@ -490,6 +490,8 @@ def main(ret):
if len(args) == 0:
log.critical("You must specify a command to run")
sys.exit(50)
+ elif len(args) == 1:
+ args = args[0]
log.info("Running in chroot: %s" % args)
chroot.tryLockBuildRoot()