From 9bbaacfb9852e830be9233cdb6b2bc0826b3255f Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Thu, 9 Oct 2025 15:05:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=A3=E7=A0=81=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/update_password.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/update_password.sh b/bin/update_password.sh index c30d56f..15fc6fd 100644 --- a/bin/update_password.sh +++ b/bin/update_password.sh @@ -7,9 +7,6 @@ script_dir="$(dirname "$(realpath "$0")")" source $script_dir/utils/jq_util.sh source $script_dir/utils/base.sh -# 检查jq是否安装 -check_jq - # 函数生成随机密码 gen_random_pass() { local pass_length=$1 # 密码长度作为第一个参数 @@ -21,6 +18,9 @@ gen_random_pass() { echo "$rand" } +# 检查jq是否安装 +check_jq + # 生成一个长度为16的随机密码 new_password=$(gen_random_pass 16)