build: offset issue with wc(1)

This commit is contained in:
Franco Fichtner 2018-11-28 10:50:35 +01:00
parent 314878d80f
commit 2299aca0ed
1 changed files with 1 additions and 1 deletions

View File

@ -486,7 +486,7 @@ setup_version()
rm -rf ${VERSIONDIR}
# estimate size while version dir is gone
local SIZE=$(tar -C ${2} -c -f - . | wc -c)
local SIZE=$(tar -C ${2} -c -f - . | wc -c | awk '{ print $1 }')
# start over
mkdir -p ${VERSIONDIR}