mirror of
https://github.com/bitwarden/server.git
synced 2024-11-23 12:25:16 +01:00
9 lines
209 B
Bash
Executable File
9 lines
209 B
Bash
Executable File
#!/bin/bash
|
|
|
|
FILES=$(git diff --cached --name-only --diff-filter=ACM "*.cs")
|
|
if [ -n "$FILES" ]
|
|
then
|
|
dotnet format ./bitwarden-server.sln --no-restore --include $FILES
|
|
echo "$FILES" | xargs git add
|
|
fi
|