From: Joerg Jaspert Date: Sun, 11 Dec 2011 19:58:09 +0000 (+0100) Subject: use stat X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=df7aa02ef6f192aad9ed0410b0d131ba306e42f8;p=dak.git use stat Signed-off-by: Joerg Jaspert --- diff --git a/scripts/debian/generate-i18n-Index b/scripts/debian/generate-i18n-Index index d0a7089b..9b166bd2 100755 --- a/scripts/debian/generate-i18n-Index +++ b/scripts/debian/generate-i18n-Index @@ -44,7 +44,7 @@ exec 3>Index echo "SHA1:" >&3 for file in Translation-* ; do sha=$(sha1sum "$file"); sha="${sha%% *}" - size=$(du --bytes "$file"); size="${size%%[^0-9]*}" + size=$(stat -c %s "${file}") printf ' %s % 7s %s\n' "$sha" "$size" "$file" >&3 done