summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-12-08 21:18:08 +0100
committerLars Wirzenius <liw@liw.fi>2015-12-08 21:18:08 +0100
commit2ba81ac7f4261bfff38b5d8f6cd03f1b94d4be82 (patch)
treecf4d474dd19adb4464706cbc3adf58e5de1488f6
parent70a9839743280edf915c356c309991fba6d7790d (diff)
downloadcmdtest-2ba81ac7f4261bfff38b5d8f6cd03f1b94d4be82.tar.gz
Only use non-empty --shell-arg values
This allows --shell=python --shell-arg='' to override /bin/sh.
-rwxr-xr-xyarn2
1 files changed, 1 insertions, 1 deletions
diff --git a/yarn b/yarn
index a18aa8e..7d3b295 100755
--- a/yarn
+++ b/yarn
@@ -455,7 +455,7 @@ class YarnRunner(cliapp.Application):
f.write(step.implementation.shell)
f.flush()
shell = self.settings['shell']
- shell_args = self.settings['shell-arg']
+ shell_args = [x for x in self.settings['shell-arg'] if x]
logging.warning('shell: %r', shell)
logging.warning('shell_args: %r', shell_args)
logging.warning('shell_script: %r', shell_script)