From 331f2e203bfa44e682bcc9ac1c36909f42f37268 Mon Sep 17 00:00:00 2001 From: steering7253 Date: Fri, 24 Apr 2026 01:36:01 +0000 Subject: repr command being run for sanity --- autopeer_shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autopeer_shell.py b/autopeer_shell.py index 4fe30b4..ea54ec5 100755 --- a/autopeer_shell.py +++ b/autopeer_shell.py @@ -243,7 +243,7 @@ if __name__ == '__main__': shell = AutopeerShell() command = os.getenv('SSH_ORIGINAL_COMMAND', '') if len(command): - sp = subprocess.run(['socat', 'stdio', NOTIFY_TO], input=f"[autopeer {socket.gethostname()}] {USER} ran {command} via {os.getenv('SSH_CONNECTION')}", text=True) + sp = subprocess.run(['socat', 'stdio', NOTIFY_TO], input=f"[autopeer {socket.gethostname()}] {USER} ran {command!r} via {os.getenv('SSH_CONNECTION')}", text=True) shell.onecmd(command) else: sp = subprocess.run(['socat', 'stdio', NOTIFY_TO], input=f"[autopeer {socket.gethostname()}] {USER} logged in via {os.getenv('SSH_CONNECTION')}", text=True) -- cgit v1.3-10-gefec