summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-03-29 21:52:55 -0400
committerAllan McRae <allan@archlinux.org>2013-03-31 11:08:54 +1000
commit950443a43810b9c12d541cb4b74fb65b7a6bcfde (patch)
treea0112107fd9ead53e9fb72dfe9d25f5bfa8b7147 /scripts
parentd5c0f391449078f02694c10abd4d08a09fa88b04 (diff)
downloadpacman-950443a43810b9c12d541cb4b74fb65b7a6bcfde.tar.xz
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 45be8b63..6c898497 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -38,6 +38,8 @@ export TEXTDOMAINDIR='@localedir@'
export COMMAND_MODE='legacy'
# Ensure CDPATH doesn't screw with our cd calls
unset CDPATH
+# Ensure GREP_OPTIONS doesn't screw with our grep calls
+unset GREP_OPTIONS
declare -r makepkg_version='@PACKAGE_VERSION@'
declare -r confdir='@sysconfdir@'