Skip to content

Commit

Permalink
Merge pull request #158 from loiosunrise/master
Browse files Browse the repository at this point in the history
[RFR][Fix] fix the script error, it should be 'fi' instead of '}'
  • Loading branch information
yuaotian authored Jan 25, 2025
2 parents a76b0ed + 1c733d3 commit 5a3c1c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/run/cursor_linux_id_modifier.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion scripts/run/cursor_mac_id_modifier.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5a3c1c7

Please sign in to comment.