Use current $SHELL for shell plugin
This commit is contained in:
parent
28959a3f31
commit
7593d8c134
1 changed files with 3 additions and 1 deletions
|
@ -41,8 +41,10 @@ class Shell(dotbot.Plugin):
|
||||||
self._log.lowinfo(cmd)
|
self._log.lowinfo(cmd)
|
||||||
else:
|
else:
|
||||||
self._log.lowinfo('%s [%s]' % (msg, cmd))
|
self._log.lowinfo('%s [%s]' % (msg, cmd))
|
||||||
|
executable = os.environ.get('SHELL')
|
||||||
ret = subprocess.call(cmd, shell=True, stdin=stdin, stdout=stdout,
|
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:
|
if ret != 0:
|
||||||
success = False
|
success = False
|
||||||
self._log.warning('Command [%s] failed' % cmd)
|
self._log.warning('Command [%s] failed' % cmd)
|
||||||
|
|
Loading…
Reference in a new issue