Skip to content

Commit cd40bae

Browse files
committed
honor $SHELL in action/transform
1 parent 35fac6c commit cd40bae

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dotdrop/action.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ def execute(self, templater=None, debug=False):
9292
self.log.dbg(f'action cmd: \"{cmd}\"')
9393
self.log.sub(f'executing \"{cmd}\"')
9494
try:
95-
ret = subprocess.call(cmd, shell=True)
95+
shellexec = os.environ.get("SHELL", "/bin/sh")
96+
ret = subprocess.call(cmd, shell=True, executable=shellexec)
9697
except KeyboardInterrupt:
9798
self.log.warn(f'{self.descr} interrupted')
9899
if ret != 0:

0 commit comments

Comments
 (0)