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