Skip to content

Commit

Permalink
move from egrep to grep (#5479)
Browse files Browse the repository at this point in the history
Closes #5478
  • Loading branch information
miton18 authored Oct 8, 2024
1 parent e706297 commit 184286b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quickwit/scripts/check_log_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

RESULT=0

for file in $(git ls-files | egrep "src/.*\.rs$")
for file in $(git ls-files | grep -E "src/.*\.rs$")
do
LOG_STARTING_WITH_UPPERCASE=$(egrep -n "(warn|info|error|debug)\!\(\"[A-Z][a-z]" $file)
LOG_STARTING_WITH_UPPERCASE=$(grep -E -n "(warn|info|error|debug)!\(\"[A-Z][a-z]" $file)
DIFFRESULT=$?
LOG_ENDING_WITH_PERIOD=$(egrep -n "(warn|info|error|debug)\!.*\.\"\);" $file)
LOG_ENDING_WITH_PERIOD=$(grep -E -n "(warn|info|error|debug)!.*\.\"\);" $file)
DIFFRESULT=$(($DIFFRESULT && $?))
if [ $DIFFRESULT -eq 0 ]; then
echo "===================="
Expand Down

0 comments on commit 184286b

Please sign in to comment.