diff --git a/dotdrop/action.py b/dotdrop/action.py index 6d032aae..73eb073a 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: