From 30f9a73a17279f8fb89f7cc85c12e0cbe7014d9b Mon Sep 17 00:00:00 2001 From: MH Hung Date: Mon, 1 Sep 2025 10:03:54 +0800 Subject: [PATCH] fix(template): solved redundant filess --- leetcode_helper.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/leetcode_helper.sh b/leetcode_helper.sh index 5f00128..222b065 100755 --- a/leetcode_helper.sh +++ b/leetcode_helper.sh @@ -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"