fix(template): solved redundant filess
This commit is contained in:
@@ -337,9 +337,9 @@ EOF
|
||||
# 建立 C# 專案
|
||||
mkdir -p "$problem_dir/csharp"
|
||||
cd "$problem_dir/csharp"
|
||||
dotnet new console -n "Problem$number" --force > /dev/null 2>&1
|
||||
dotnet new console --force > /dev/null 2>&1
|
||||
|
||||
# 建立 C# 解法檔案
|
||||
# 覆寫自動生成的 Program.cs
|
||||
cat > "Program.cs" << EOF
|
||||
// LeetCode $number: $(echo "$name" | tr '-' ' ' | sed 's/\b\w/\u&/g')
|
||||
// 難度: $difficulty
|
||||
@@ -430,7 +430,7 @@ EOF
|
||||
echo "├── README.md"
|
||||
echo "├── csharp/"
|
||||
echo "│ ├── Program.cs"
|
||||
echo "│ └── Problem$number.csproj"
|
||||
echo "│ └── *.csproj"
|
||||
echo "├── go/"
|
||||
echo "│ ├── main.go"
|
||||
echo "│ └── go.mod"
|
||||
|
Reference in New Issue
Block a user