diff --git a/scripts/e2e.cdn.sh b/scripts/e2e.cdn.sh index dcf6768dfbb..37ad6d32c41 100755 --- a/scripts/e2e.cdn.sh +++ b/scripts/e2e.cdn.sh @@ -22,7 +22,7 @@ cp packages/web3/dist/web3.min.js scripts/html cd scripts/html -BUNDLE_SIZE=$(stat -f%z web3.min.js) +BUNDLE_SIZE=$(wc -c web3.min.js | awk '{print $1}') # Mark file with current commit, branch, and bundle size. sed -i "s|__COMMIT_HASH__|$COMMIT_REF|g" index.html diff --git a/scripts/html/index.html b/scripts/html/index.html index c3b54a37b78..3ff8a06bfa6 100644 --- a/scripts/html/index.html +++ b/scripts/html/index.html @@ -25,7 +25,7 @@