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)