diff options
author | Rene Engelhard <rene@debian.org> | 2022-09-07 21:34:42 +0200 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2022-09-08 14:43:53 +0200 |
commit | fd42cea5f301a10cdeaa29959f04b111de534132 (patch) | |
tree | 0bfa9e9f22d63dcbb6eeafc6002752d9ff20399e /android | |
parent | 09e499e64ec4acb24c9524c8aacabc6182124442 (diff) |
replace egrep/fgrep calls with grep -E/grep -F
as egrep/fgrep is deprecated since long amd grep 3.8+ now actually warns
(e.g. "egrep: warning: egrep is obsolescent; using grep -E")
Change-Id: I5b10f05dffdd09081deb05cef974e3cdb2907315
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139614
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'android')
-rwxr-xr-x | android/source/gradlew | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/source/gradlew b/android/source/gradlew index 91a7e269e19d..b7029853b09f 100755 --- a/android/source/gradlew +++ b/android/source/gradlew @@ -130,8 +130,8 @@ if $cygwin ; then # Now convert the arguments - kludge to limit ourselves to /bin/sh i=0 for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + CHECK=`echo "$arg"|grep -E -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|grep -E -c "^-"` ### Determine if an option if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` |