aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2014-06-09 03:59:07 +1000
committerMichael Palimaka <kensington@gentoo.org>2014-06-09 03:59:07 +1000
commit5d47213d87c7797b5bb66142089d15fa583af8bb (patch)
tree54442bf63a813bddb8855359a7851a91d70f7909 /tinderbox
parenttinderbox: add DEPCHECK_BIN configuration variable. (diff)
downloadqa-scripts-5d47213d87c7797b5bb66142089d15fa583af8bb.tar.gz
qa-scripts-5d47213d87c7797b5bb66142089d15fa583af8bb.tar.bz2
qa-scripts-5d47213d87c7797b5bb66142089d15fa583af8bb.zip
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.
Diffstat (limited to 'tinderbox')
-rw-r--r--tinderbox/bashrc2
1 files changed, 1 insertions, 1 deletions
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")
}