mirror of
https://github.com/yuaotian/go-cursor-help.git
synced 2025-06-08 12:32:06 +08:00
fix: Correct syntax errors in configuration file generation function
- Fixed missing `fi` keywords in conditional blocks - Resolved potential shell script syntax issues in `generate_new_config()` - Maintained existing configuration file generation logic
This commit is contained in:
parent
6e773bdd29
commit
0c59acaed6
@ -253,7 +253,7 @@ generate_new_config() {
|
||||
log_error "未找到配置文件: $STORAGE_FILE"
|
||||
log_warn "请先安装并运行一次 Cursor 后再使用此脚本"
|
||||
exit 1
|
||||
}
|
||||
fi
|
||||
|
||||
# 确保配置文件目录存在
|
||||
mkdir -p "$(dirname "$STORAGE_FILE")" || {
|
||||
@ -267,7 +267,7 @@ generate_new_config() {
|
||||
log_error "无法初始化配置文件"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
fi
|
||||
|
||||
# 修改现有文件
|
||||
modify_or_add_config "telemetry.machineId" "$machine_id" "$STORAGE_FILE" || exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user