mirror of
https://github.com/OMGeeky/tarpc.git
synced 2025-12-26 17:02:32 +01:00
Fix issue with grep exit status
This commit is contained in:
@@ -93,8 +93,7 @@ for file in $(git diff --name-only --cached);
|
||||
do
|
||||
if [ ${file: -3} == ".rs" ]; then
|
||||
diff=$(rustfmt --skip-children --write-mode=diff $file)
|
||||
result=$(echo $diff | grep --quiet "^Diff at line")
|
||||
if $result; then
|
||||
if grep --quiet "^Diff at line" <<< "$diff"; then
|
||||
FMTRESULT=1
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user