fix: Robust socat client fallback
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 2s
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 2s
This commit is contained in:
@@ -97,7 +97,7 @@ fi
|
|||||||
|
|
||||||
# --- 4. INTERACT (The Client) ---
|
# --- 4. INTERACT (The Client) ---
|
||||||
if command_exists socat && socat - TCP:$HOST:$PORT,connect-timeout=1 2>/dev/null; then
|
if command_exists socat && socat - TCP:$HOST:$PORT,connect-timeout=1 2>/dev/null; then
|
||||||
socat READLINE,history=$HOME/.org_agent_history TCP:$HOST:$PORT
|
socat - TCP:$HOST:$PORT
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ fi
|
|||||||
|
|
||||||
# --- 4. INTERACT (The Client) ---
|
# --- 4. INTERACT (The Client) ---
|
||||||
if command_exists socat && socat - TCP:$HOST:$PORT,connect-timeout=1 2>/dev/null; then
|
if command_exists socat && socat - TCP:$HOST:$PORT,connect-timeout=1 2>/dev/null; then
|
||||||
socat READLINE,history=$HOME/.org_agent_history TCP:$HOST:$PORT
|
socat - TCP:$HOST:$PORT
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user