From 2ba81ac7f4261bfff38b5d8f6cd03f1b94d4be82 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 8 Dec 2015 21:18:08 +0100 Subject: Only use non-empty --shell-arg values This allows --shell=python --shell-arg='' to override /bin/sh. --- yarn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yarn') 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) -- cgit v1.2.1