From 33a5464ba70a1e01df2f273feb3ea97a2a8ad19f Mon Sep 17 00:00:00 2001 From: Davidasx <81460770+Davidasx@users.noreply.github.com> Date: Tue, 4 Aug 2026 14:11:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(rotate-secret):=20=E4=BF=AE=E5=A4=8D=20tr/h?= =?UTF-8?q?ead=20=E7=AE=A1=E9=81=93=20SIGPIPE=20=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E9=9D=99=E9=BB=98=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `tr -dc 'A-Za-z0-9' --- scripts/rotate-secret.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/rotate-secret.sh b/scripts/rotate-secret.sh index 327f4cc..3e0884f 100644 --- a/scripts/rotate-secret.sh +++ b/scripts/rotate-secret.sh @@ -43,8 +43,14 @@ if [[ "$LENGTH" -lt 16 ]]; then exit 1 fi -# 生成 URL-safe 随机字符串:从 base64 中过滤出 [A-Za-z0-9] -RAND_RAW="$(LC_ALL=C tr -dc 'A-Za-z0-9'