mirror of
https://github.com/yuaotian/go-cursor-help.git
synced 2025-06-08 12:32:06 +08:00
更新cursor_linux_id_modifier.sh脚本,修改了macOS版本信息的日志输出,注释掉了Linux环境检查的相关代码,并优化了应用修复选项的菜单选择提示,以提升用户交互体验。
This commit is contained in:
parent
f130869f51
commit
9ec3f0518c
@ -1010,15 +1010,15 @@ main() {
|
||||
# 记录系统信息
|
||||
log_info "系统信息: $(uname -a)"
|
||||
log_info "当前用户: $CURRENT_USER"
|
||||
log_cmd_output "sw_vers" "macOS 版本信息"
|
||||
log_cmd_output "sw_vers" " 版本信息"
|
||||
log_cmd_output "which codesign" "codesign 路径"
|
||||
log_cmd_output "ls -la \"$CURSOR_APP_PATH\"" "Cursor 应用信息"
|
||||
|
||||
# 新增环境检查
|
||||
if [[ $(uname) != "Darwin" ]]; then
|
||||
log_error "本脚本仅支持 macOS 系统"
|
||||
exit 1
|
||||
fi
|
||||
# # 新增环境检查
|
||||
# if [[ $(uname) != "" ]]; then
|
||||
# log_error "本脚本仅支持 Linux 系统"
|
||||
# exit 1
|
||||
# fi
|
||||
|
||||
clear
|
||||
# 显示 Logo
|
||||
@ -1121,7 +1121,7 @@ main() {
|
||||
log_warn "应用修复选项"
|
||||
|
||||
# 使用新的菜单选择函数
|
||||
select_menu_option "请使用上下箭头选择,按Enter确认:" "忽略 - 不执行修复操作|修复"应用已损坏"问题 - 解决macOS提示应用已损坏无法打开的问题" 0
|
||||
select_menu_option "请使用上下箭头选择,按Enter确认:" "忽略 - 不执行修复操作|修复"应用已损坏"问题 - 解决提示应用已损坏无法打开的问题" 0
|
||||
damaged_choice=$?
|
||||
|
||||
echo "[INPUT_DEBUG] 应用修复选项选择: $damaged_choice" >> "$LOG_FILE"
|
||||
|
Loading…
x
Reference in New Issue
Block a user