makepkg: unset GREP_OPTIONS
grep allows options to be set from the environment with GREP_OPTIONS. Many of these options will alter grep's output, breaking makepkg. GREP_OPTIONS=--line-number breaks installed dependency removal, for instance. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
d5c0f39144
commit
950443a438
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,8 @@ export TEXTDOMAINDIR='@localedir@'
|
||||||
export COMMAND_MODE='legacy'
|
export COMMAND_MODE='legacy'
|
||||||
# Ensure CDPATH doesn't screw with our cd calls
|
# Ensure CDPATH doesn't screw with our cd calls
|
||||||
unset CDPATH
|
unset CDPATH
|
||||||
|
# Ensure GREP_OPTIONS doesn't screw with our grep calls
|
||||||
|
unset GREP_OPTIONS
|
||||||
|
|
||||||
declare -r makepkg_version='@PACKAGE_VERSION@'
|
declare -r makepkg_version='@PACKAGE_VERSION@'
|
||||||
declare -r confdir='@sysconfdir@'
|
declare -r confdir='@sysconfdir@'
|
||||||
|
|
Loading…
Add table
Reference in a new issue