From 5f7c7a457947986f92b2856ac279b5e3403e370f Mon Sep 17 00:00:00 2001 From: Brandon Lucas Date: Sat, 14 Feb 2026 02:38:13 -0500 Subject: [PATCH] Fix age-keygen hanging due to pipe buffering Extract public key from generated file instead of parsing stderr through a pipe, which could cause blocking. Co-Authored-By: Claude Opus 4.5 --- setup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup b/setup index c1762d9..74f799d 100755 --- a/setup +++ b/setup @@ -80,8 +80,9 @@ setup_new() { else if has age-keygen; then step "Generating age encryption key..." - age-keygen -o "$AGE_KEY_FILE" 2>&1 | grep -i "public key" + age-keygen -o "$AGE_KEY_FILE" 2>/dev/null chmod 600 "$AGE_KEY_FILE" + grep '^# public key:' "$AGE_KEY_FILE" | sed 's/^# //' else err "age not installed. Run: nix-shell -p age" exit 1