- Pipe the package uncompressed size to awk in order to get only the value and not the filename
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1195 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
6d4e756546
commit
5391aa12da
|
@ -44,7 +44,7 @@ done
|
||||||
|
|
||||||
cd ${curdir}
|
cd ${curdir}
|
||||||
|
|
||||||
pkg_size="$( du -sk ${curdir} )"
|
pkg_size="$( du -sk "${curdir}" | awk '{ print $1; }' )"
|
||||||
|
|
||||||
mkdir -p "${destdir}/DEBIAN"
|
mkdir -p "${destdir}/DEBIAN"
|
||||||
sed "s|@SIZE@|${pkg_size}|g" "$1" > "${destdir}/DEBIAN/control"
|
sed "s|@SIZE@|${pkg_size}|g" "$1" > "${destdir}/DEBIAN/control"
|
||||||
|
|
Loading…
Reference in New Issue