mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
lint: replace egrep with grep -E
Starting with grep 3.8, egrep throws the following warning egrep: warning: egrep is obsolescent; using grep -E Whch is annoying... so we will use grep -E
This commit is contained in:
parent
6669d160b1
commit
e38c0a1bbd
@ -103,17 +103,17 @@ function java_check() {
|
||||
# Loop through each modified file.
|
||||
for f in ${modified_files}; do
|
||||
# Filter them.
|
||||
if echo "${f}" | egrep -q "[.]java$"; then
|
||||
if echo "${f}" | grep -E -q "[.]java$"; then
|
||||
# Copy Java files to a temporary directory
|
||||
java_setup
|
||||
mkdir -p $(dirname "${java_temp_dir}/${f}")
|
||||
cp "${f}" "${java_temp_dir}/${f}"
|
||||
continue
|
||||
fi
|
||||
if ! echo "${f}" | egrep -q "[.](cpp|h|mm)$"; then
|
||||
if ! echo "${f}" | grep -E -q "[.](cpp|h|mm)$"; then
|
||||
continue
|
||||
fi
|
||||
if ! echo "${f}" | egrep -q "^Source"; then
|
||||
if ! echo "${f}" | grep -E -q "^Source"; then
|
||||
continue
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user