调整代码位置
This commit is contained in:
parent
90e49e9cf3
commit
9bbaacfb98
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user