From 7593d8c13479b382357be065c7bf51562a130660 Mon Sep 17 00:00:00 2001 From: Kevin Heinicke Date: Wed, 19 Oct 2016 17:25:45 +0200 Subject: [PATCH] Use current $SHELL for shell plugin --- plugins/shell.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/shell.py b/plugins/shell.py index f321ca3..2931dc2 100644 --- a/plugins/shell.py +++ b/plugins/shell.py @@ -41,8 +41,10 @@ class Shell(dotbot.Plugin): self._log.lowinfo(cmd) else: self._log.lowinfo('%s [%s]' % (msg, cmd)) + executable = os.environ.get('SHELL') ret = subprocess.call(cmd, shell=True, stdin=stdin, stdout=stdout, - stderr=stderr, cwd=self._context.base_directory()) + stderr=stderr, cwd=self._context.base_directory(), + executable=executable) if ret != 0: success = False self._log.warning('Command [%s] failed' % cmd)