stdenv/multiple-outputs: Guard greps with 'set +/-o pipefail'

This is required since #7524 is fixed ("stdenv: Errors in hooks (such as
postUnpack) get ignored")
This commit is contained in:
Tuomas Tynkkynen 2015-08-20 02:53:31 +03:00 committed by Vladimír Čunát
parent 2b67ba2ad2
commit 52c4337356

View File

@ -138,9 +138,11 @@ _multioutPropagateDev() {
# Default value: propagate binaries, includes and libraries
if [[ ! -v "$propagatedOutputs" ]]; then
local po_dirty="$outputBin $outputInclude $outputLib"
set +o pipefail
propagatedOutputs=`echo "$po_dirty" \
| tr -s ' ' '\n' | grep -v -F "$outputFirst" \
| sort -u | tr '\n' ' ' `
set -o pipefail
elif [ -z "$propagatedOutputs" ]; then
return # variable was explicitly set to empty