diff options
author | Kevin Heinicke <kevin@kehei.de> | 2016-10-19 17:25:45 +0200 |
---|---|---|
committer | Anish Athalye <me@anishathalye.com> | 2016-11-17 13:50:12 -0500 |
commit | 7593d8c13479b382357be065c7bf51562a130660 (patch) | |
tree | b5568927c21fa3bc61b2c448de34dff65f79580c | |
parent | 28959a3f31d8632975de4e18d0a0e47476b5a413 (diff) |
Use current $SHELL for shell plugin
-rw-r--r-- | plugins/shell.py | 4 |
1 files changed, 3 insertions, 1 deletions
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) |