From e31626395fa9c867b86726c1e088c2caee7cd3eb Mon Sep 17 00:00:00 2001 From: deadc0de6 <8973919+deadc0de6@users.noreply.github.com.> Date: Sat, 11 Apr 2026 21:58:24 +0200 Subject: [PATCH] honor $SHELL in action/transform --- dotdrop/action.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotdrop/action.py b/dotdrop/action.py index 6d032aaea..73eb073ad 100644 --- a/dotdrop/action.py +++ b/dotdrop/action.py @@ -92,7 +92,8 @@ def execute(self, templater=None, debug=False): self.log.dbg(f'action cmd: \"{cmd}\"') self.log.sub(f'executing \"{cmd}\"') try: - ret = subprocess.call(cmd, shell=True) + shellexec = os.environ.get("SHELL", "/bin/sh") + ret = subprocess.call(cmd, shell=True, executable=shellexec) except KeyboardInterrupt: self.log.warn(f'{self.descr} interrupted') if ret != 0: