diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-11 21:07:33 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-11 21:07:33 +0000 |
| commit | 809982cdc78e287bc9f3fc0dbac5e2aab2fd7f7d (patch) | |
| tree | 6e2663dcb1d2db77b870dbf833b9969696e63dcd /scripts | |
| parent | c89d3b6b3646b707b53146226bb7afd21cca11fa (diff) | |
fix(config): trim whitespace from relay-owner-nsec CLI/env input
When relay_owner_nsec is provided via CLI argument or environment
variable (e.g., read from a file by the NixOS module), trim any
leading/trailing whitespace including newlines. This matches the
behavior when reading from the .relay-owner.nsec file directly.
Fixes issue where NixOS module reads nsec file with 'cat', which
includes the trailing newline, making the nsec invalid when passed
as a CLI argument.
Also reverted the tr workaround in nix/module.nix since ngit-grasp
now handles this correctly.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions