Skip to content

Commit 5a3c1c7

Browse files
authored
Merge pull request yuaotian#158 from loiosunrise/master
[RFR][Fix] fix the script error, it should be 'fi' instead of '}'
2 parents a76b0ed + 1c733d3 commit 5a3c1c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/run/cursor_linux_id_modifier.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,14 @@ generate_new_config() {
161161
if ! command -v uuidgen &> /dev/null; then
162162
log_error "未找到 uuidgen 命令,请安装 uuidgen"
163163
exit 1
164-
}
164+
fi
165165

166166
# 检查配置文件是否存在
167167
if [ ! -f "$STORAGE_FILE" ]; then
168168
log_error "未找到配置文件: $STORAGE_FILE"
169169
log_warn "请先安装并运行一次 Cursor 后再使用此脚本"
170170
exit 1
171-
}
171+
fi
172172

173173
# 将 auth0|user_ 转换为字节数组的十六进制
174174
local prefix_hex=$(echo -n "auth0|user_" | xxd -p)

scripts/run/cursor_mac_id_modifier.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ generate_new_config() {
144144
log_error "未找到配置文件: $STORAGE_FILE"
145145
log_warn "请先安装并运行一次 Cursor 后再使用此脚本"
146146
exit 1
147-
}
147+
fi
148148

149149
# 将 auth0|user_ 转换为字节数组的十六进制
150150
local prefix_hex=$(echo -n "auth0|user_" | xxd -p)

0 commit comments

Comments
 (0)