[dak/master] use stat
Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
scripts/debian/generate-i18n-Index | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/debian/generate-i18n-Index b/scripts/debian/generate-i18n-Index
index d0a7089..9b166bd 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
--
1.7.2.5
Reply to: