init.sh
· 560 B · Bash
原始檔案
rm *.sln
dotnet new sln
find . -name *.csproj | xargs -I {} dotnet sln add {}
find . -name *.csproj | xargs -I {} dotnet publish {} -r win-x64 -c Release --self-contained
# Push all
for dir1 in ./*; do
if [ -d "$dir1" ]; then
cd "$dir1"
for dir2 in ./*; do
if [ -d "$dir2" ]; then
cd "$dir2"
git add .
git commit -m "Fix manhours badge link"
git push
cd ..
fi
done
# 返回到原始目录
cd ..
fi
done
| 1 | rm *.sln |
| 2 | |
| 3 | dotnet new sln |
| 4 | |
| 5 | find . -name *.csproj | xargs -I {} dotnet sln add {} |
| 6 | |
| 7 | find . -name *.csproj | xargs -I {} dotnet publish {} -r win-x64 -c Release --self-contained |
| 8 | |
| 9 | |
| 10 | # Push all |
| 11 | for dir1 in ./*; do |
| 12 | if [ -d "$dir1" ]; then |
| 13 | cd "$dir1" |
| 14 | for dir2 in ./*; do |
| 15 | if [ -d "$dir2" ]; then |
| 16 | cd "$dir2" |
| 17 | git add . |
| 18 | git commit -m "Fix manhours badge link" |
| 19 | git push |
| 20 | cd .. |
| 21 | fi |
| 22 | done |
| 23 | # 返回到原始目录 |
| 24 | cd .. |
| 25 | fi |
| 26 | done |
| 27 |