mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Set the shell to bash explicitly
This commit is contained in:
@@ -57,6 +57,7 @@ class RemoteProcess(CommandProcess):
|
|||||||
self._process = Popen(
|
self._process = Popen(
|
||||||
cmd,
|
cmd,
|
||||||
shell=True,
|
shell=True,
|
||||||
|
executable="/bin/bash",
|
||||||
stdin=PIPE,
|
stdin=PIPE,
|
||||||
stdout=PIPE,
|
stdout=PIPE,
|
||||||
stderr=PIPE,
|
stderr=PIPE,
|
||||||
@@ -91,7 +92,14 @@ class RemoteProcess(CommandProcess):
|
|||||||
cmd = RemoteProcess.make_kill_script(self._pidfile)
|
cmd = RemoteProcess.make_kill_script(self._pidfile)
|
||||||
if not self._is_local:
|
if not self._is_local:
|
||||||
cmd = f"ssh {self._host} {shlex.quote(cmd)}"
|
cmd = f"ssh {self._host} {shlex.quote(cmd)}"
|
||||||
c = run(cmd, check=True, shell=True, capture_output=True, text=True)
|
c = run(
|
||||||
|
cmd,
|
||||||
|
check=True,
|
||||||
|
shell=True,
|
||||||
|
executable="/bin/bash",
|
||||||
|
capture_output=True,
|
||||||
|
text=True,
|
||||||
|
)
|
||||||
|
|
||||||
self._killed = c.stdout.strip() == "1"
|
self._killed = c.stdout.strip() == "1"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user