summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Matveev <stargrave@stargrave.org>2019-04-28 10:26:49 +0300
committerSergey Matveev <stargrave@stargrave.org>2019-04-28 10:26:49 +0300
commitc1be9aab26386f914fa8efb816cc3d2badbfc377 (patch)
tree293c1ddfd3d0993c22ad1e46fa1cb4ce42c0f690
parent739d0847fc7e2577680291628623c70797fbd9e3 (diff)
downloadpyderasn-c1be9aab26386f914fa8efb816cc3d2badbfc377.tar.xz
Less hackish file size reading
-rwxr-xr-xmakedist.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/makedist.sh b/makedist.sh
index 4e87a16..0441cfc 100755
--- a/makedist.sh
+++ b/makedist.sh
@@ -27,7 +27,7 @@ xz -9v pyderasn-"$release".tar
gpg --detach-sign --sign --local-user 04A933D1BA20327A pyderasn-"$release".tar.xz
tarball=pyderasn-"$release".tar.xz
-size=$(( $(wc -c < $tarball) / 1024 ))
+size=$(( $(stat -f %z $tarball) / 1024 ))
hash=$(gpg --print-md SHA256 < $tarball)
release_date=$(date "+%Y-%m-%d")