From 9f9c261ab1a7741da0cbe436b67088224b84897a Mon Sep 17 00:00:00 2001 From: Alec Leamas <alec@tests.notat.diaspora.com> Date: Wed, 7 Nov 2012 21:21:35 +0100 Subject: [PATCH] Handle multiline envvars correct - bz #874246 Old code didn't cope with multiline environment variables correct. Kudos to Jerry James, who reported and also knew the sed wizardry required to fix it. --- plugins/shell_api.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/plugins/shell_api.py b/plugins/shell_api.py index 4761386..6d21d02 100644 --- a/plugins/shell_api.py +++ b/plugins/shell_api.py @@ -32,7 +32,7 @@ from FedoraReview import AbstractRegistry, GenericCheck from FedoraReview import ReviewDirs, Settings, XdgDirs ENVIRON_TEMPLATE = """ -unset $(env | sed 's/=.*//') +unset $(env | sed -n 's/=.*//p') PATH=/bin:/usr/bin:/sbin/:/usr/sbin FR_FLAGS_generator -- 1.7.1