flnxi-Wu/fix-line-endings.sh
WuYongJie 542c7bcc49 feat: 优化自定义上传模板系统
- 修复内置模板验证问题(builtin-video-material等)
- 添加模板验证工具 lib/template-validator.ts
- 创建模板系统优化需求文档(30个详细需求)
- 优化上传API的模板验证逻辑
- 改进错误提示信息的清晰度
- 添加字段池和分类管理相关需求
- 完善自定义字段的创建、验证、存储逻辑
- 清理过期的 .specstory 和 .trae 文件
2025-12-13 14:26:43 +08:00

32 lines
658 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 修复脚本文件的行结束符问题
# 使用方法:bash fix-line-endings.sh
echo "修复脚本文件的行结束符..."
echo ""
# 修复 install.sh
if [ -f "install.sh" ]; then
sed -i 's/\r$//' install.sh
chmod +x install.sh
echo "[OK] install.sh 已修复"
else
echo "[FAIL] install.sh 不存在"
fi
# 修复 uninstall.sh
if [ -f "uninstall.sh" ]; then
sed -i 's/\r$//' uninstall.sh
chmod +x uninstall.sh
echo "[OK] uninstall.sh 已修复"
else
echo "[FAIL] uninstall.sh 不存在"
fi
echo ""
echo "修复完成!现在可以运行:"
echo " bash install.sh"
echo " 或"
echo " bash uninstall.sh"