Merge pull request #158 from loiosunrise/master

[RFR][Fix] fix the script error, it should be 'fi' instead of '}'
This commit is contained in:
煎饼果子卷鲨鱼辣椒 2025-01-25 19:44:41 +08:00 committed by GitHub
commit 5a3c1c79a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -161,14 +161,14 @@ generate_new_config() {
if ! command -v uuidgen &> /dev/null; then
log_error "未找到 uuidgen 命令,请安装 uuidgen"
exit 1
}
fi
# 检查配置文件是否存在
if [ ! -f "$STORAGE_FILE" ]; then
log_error "未找到配置文件: $STORAGE_FILE"
log_warn "请先安装并运行一次 Cursor 后再使用此脚本"
exit 1
}
fi
# 将 auth0|user_ 转换为字节数组的十六进制
local prefix_hex=$(echo -n "auth0|user_" | xxd -p)

View File

@ -144,7 +144,7 @@ generate_new_config() {
log_error "未找到配置文件: $STORAGE_FILE"
log_warn "请先安装并运行一次 Cursor 后再使用此脚本"
exit 1
}
fi
# 将 auth0|user_ 转换为字节数组的十六进制
local prefix_hex=$(echo -n "auth0|user_" | xxd -p)