Skip to content

Commit b357773

Browse files
committed
use correct measurement for zip size limit
1 parent d90de61 commit b357773

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/measure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
file=$1
4-
max_size=13000
4+
max_size=13312 # (13 * 1024)
55
size=$(ls -l "$file" | awk '{ print $5 }')
66
percent=$(echo "$size / $max_size * 100" | bc -l)
77
printf "%d/%d bytes (%.2f%%)\n" "$size" "$max_size" "$percent"

0 commit comments

Comments
 (0)