Skip to content

Commit

Permalink
将部分文件的英文冒号替换成---
Browse files Browse the repository at this point in the history
  • Loading branch information
YvetteQSystim committed Aug 11, 2024
1 parent f4e3b0c commit 58b6edd
Show file tree
Hide file tree
Showing 42 changed files with 0 additions and 0 deletions.
File renamed without changes.

1 comment on commit 58b6edd

@YaoYYoung
Copy link
Owner

@YaoYYoung YaoYYoung commented on 58b6edd Aug 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

备注:

对应 Issue #2

Linux 系统中的文件名支持英文冒号 :,但是 Windows 系统并不支持。

目前先把文件名中的冒号换成 ---,这样在 Windows 系统 git clone 之后就不会出现 checkout 相关的问题。

find . -depth -name '*:*' | while IFS= read -r file; do
    new_file="$(dirname "$file")/$(basename "$file" | sed 's/:/ ---/g')"
    mv "$file" "$new_file"
done

Please sign in to comment.