commit 596c835a05ec98c23cf04be83ddfa344a7da4319 parent ccfb7af5839e81e87fc7da3d308e6aa77de69ae8 Author: awy <awy@awy.one> Date: Tue, 23 Dec 2025 22:50:39 +0300 suppress if no accounts Diffstat:
| M | bin/aew | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/aew b/bin/aew @@ -68,7 +68,7 @@ checkbasics() { } } -getaccounts() { accounts="$(sed -n 's/^\[\(.*\)\]/\1/p' "$accountsconf" | nl)"; } +getaccounts() { accounts="$(sed -n 's/^\[\(.*\)\]/\1/p' "$accountsconf" 2>/dev/null | nl)"; } list() { getaccounts && [ -n "$accounts" ] && echo "$accounts" || exit 1; }