1
0
Fork 0
mirror of synced 2024-11-25 01:25:35 -05:00

Use current $SHELL for shell plugin

This commit is contained in:
Kevin Heinicke 2016-10-19 17:25:45 +02:00 committed by Anish Athalye
parent 28959a3f31
commit 7593d8c134

View file

@ -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)