office/openoffice.org: Silence a harmless warning

Thanks to <redacted> for noticing the tarry spew.  ;-)

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Robby Workman 2010-06-17 11:01:52 -05:00
parent fc25dd0879
commit 8687c9844f
1 changed files with 2 additions and 2 deletions

View File

@ -85,9 +85,9 @@ fi
# Ignore this - it's just to get the toplevel directory name of the
# extracted tarball archive
if [ $WJRE != no ]; then
SOURCEDIR=$(tar tzf $CWD/OOo_${VERSION}_Linux_${SRCARCH}_install-rpm-wJRE_${OOLANG}.tar.gz | head -1 | tr -d \/)
SOURCEDIR=$(tar tzf $CWD/OOo_${VERSION}_Linux_${SRCARCH}_install-rpm-wJRE_${OOLANG}.tar.gz 2>/dev/null | head -n 1 | tr -d \/)
else
SOURCEDIR=$(tar tzf $CWD/OOo_${VERSION}_Linux_${SRCARCH}_install-rpm_${OOLANG}.tar.gz | head -1 | tr -d \/)
SOURCEDIR=$(tar tzf $CWD/OOo_${VERSION}_Linux_${SRCARCH}_install-rpm_${OOLANG}.tar.gz 2>/dev/null | head -n 1 | tr -d \/)
fi
# If the above operation failed for some reason, unset SOURCEDIR so that
# the "set -eu" below will cause us to bail out with an error