about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2026-05-11 22:00:40 +0100
committerArun Isaac2026-05-17 23:10:17 +0100
commiteb48d3f2dbd512719251406d88b3de821eb3fe17 (patch)
tree9235c763240b4803ba9da62d16ffafcfdee16046
parent03a0edf0e2f0df29afdded81824c7aa75745fa24 (diff)
downloadkaagum-eb48d3f2dbd512719251406d88b3de821eb3fe17.tar.gz
kaagum-eb48d3f2dbd512719251406d88b3de821eb3fe17.tar.lz
kaagum-eb48d3f2dbd512719251406d88b3de821eb3fe17.zip
Trim whitespace on either side of the API key.
-rwxr-xr-xbin/kaagum2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/kaagum b/bin/kaagum
index 42475c5..2d455ab 100755
--- a/bin/kaagum
+++ b/bin/kaagum
@@ -83,7 +83,7 @@ Run kaagum AI agent.
   ;; 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)
-    get-string-all))
+    (compose string-trim-both get-string-all)))
 
 (define main
   (match-lambda