From 5391aa12dab30e73b6a49e88cca2723135487d81 Mon Sep 17 00:00:00 2001 From: tchernobog Date: Sat, 16 Sep 2006 13:58:18 +0000 Subject: [PATCH] - 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 --- distro/deb/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distro/deb/build.sh b/distro/deb/build.sh index 3a5a17c..45b70a0 100755 --- a/distro/deb/build.sh +++ b/distro/deb/build.sh @@ -44,7 +44,7 @@ done cd ${curdir} -pkg_size="$( du -sk ${curdir} )" +pkg_size="$( du -sk "${curdir}" | awk '{ print $1; }' )" mkdir -p "${destdir}/DEBIAN" sed "s|@SIZE@|${pkg_size}|g" "$1" > "${destdir}/DEBIAN/control"