Fix case-sensitive grep breaking age key generation

age-keygen outputs "Public key:" but grep was searching for
lowercase "public key", causing silent exit with pipefail.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-14 02:36:30 -05:00
parent 96cca3f92b
commit 1a87fab2d7

2
setup
View File

@@ -80,7 +80,7 @@ setup_new() {
else else
if has age-keygen; then if has age-keygen; then
step "Generating age encryption key..." step "Generating age encryption key..."
age-keygen -o "$AGE_KEY_FILE" 2>&1 | grep "public key" age-keygen -o "$AGE_KEY_FILE" 2>&1 | grep -i "public key"
chmod 600 "$AGE_KEY_FILE" chmod 600 "$AGE_KEY_FILE"
else else
err "age not installed. Run: nix-shell -p age" err "age not installed. Run: nix-shell -p age"