mirror of
https://github.com/reecetech/version-increment.git
synced 2025-12-21 14:35:44 +00:00
Try forcing locale for grep
This commit is contained in:
@@ -68,13 +68,13 @@ fi
|
|||||||
|
|
||||||
function grep_p() {
|
function grep_p() {
|
||||||
if [[ "${use_perl}" == 'true' ]] ; then
|
if [[ "${use_perl}" == 'true' ]] ; then
|
||||||
perl -ne "print if /${1}/"
|
LC_ALL=C perl -ne "print if /${1}/"
|
||||||
elif [[ "${use_gnugrep}" == 'true' ]] ; then
|
elif [[ "${use_gnugrep}" == 'true' ]] ; then
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
ggrep -P "${1}"
|
LC_ALL=C ggrep -P "${1}"
|
||||||
else
|
else
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
command grep -P "${1}"
|
LC_ALL=C command grep -P "${1}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user