#!/bin/bash # 检查 jq 是否安装 if ! command -v jq &> /dev/null; then echo "jq 未安装" exit 1 fi script_dir=$(cd "$(dirname "$0")"; pwd) # 脚本文件绝对路径 # 生成uui, 写入到config.json文件 bash $script_dir/update_uuid.sh # 生成密钥对, 修改config.json中的密钥属性 bash $script_dir/update_key.sh # 打印分享链接 bash $script_dir/print_share_link.sh