From b83b3eb5b74cbd46b3572ec8463fc591114b8bef Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 7 Aug 2026 02:14:52 +0100 Subject: Set pipefail when running API key commands. --- bin/kaagum | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/kaagum b/bin/kaagum index e2ff91f..09902fa 100755 --- a/bin/kaagum +++ b/bin/kaagum @@ -96,7 +96,8 @@ Run kaagum AI agent. ;; We use a shell to execute since ;; 1. api-key-command is a string, not a list of string arguments ;; 2. api-key-command may contain pipes - (call-with-input-pipe `("sh" "-c" ,api-key-command) + ;; We set pipefail so that a failure in any command in the pipe is reported. + (call-with-input-pipe `("sh" "-o" "pipefail" "-c" ,api-key-command) (compose string-trim-both get-string-all))) (define main -- cgit 1.4.1