From 5d47213d87c7797b5bb66142089d15fa583af8bb Mon Sep 17 00:00:00 2001 From: Michael Palimaka Date: Mon, 9 Jun 2014 03:59:07 +1000 Subject: tinderbox: remove blank lines from eselect profile output. There was an issue where using a profile from an overlay causes eselect to print an extra blank line. --- tinderbox/bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tinderbox/bashrc') diff --git a/tinderbox/bashrc b/tinderbox/bashrc index 121f20e..c7cc6f2 100644 --- a/tinderbox/bashrc +++ b/tinderbox/bashrc @@ -69,7 +69,7 @@ BUILD_DATA_DIR="${PACKAGE_DATA_DIR}/${PF}/$(uuidgen)" tinderbox_setup_common() { SANDBOX_ON=0 mkdir -p "${BUILD_DATA_DIR}" > /dev/null write_data arch ${ARCH} - write_data profile $(eselect profile show | tail -1) + write_data profile $(eselect profile show | grep -v "^[[:space:]]*$" | tail -1) write_data timestamp $(date --utc "+%F %T %Z") } -- cgit v1.2.3