#!/usr/bin/env bash set -e # ========================= # 辅助函数:生成随机 8 位字符串 # ========================= generate_random_string() { tr -dc 'a-z0-9'