Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 4152faa

Browse files
committed
stat -c%s -> wc -c, works both on macos and linux
1 parent 596efe8 commit 4152faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nancy_run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ if ([ "$RUN_ON" == "aws" ] && [ ! ${AWS_EC2_TYPE:0:2} == "i3" ] && \
574574
dumpFileSize=${dumpFileSize// /}
575575
[ $DEBUG -eq 1 ] && msg "S3 file size: $dumpFileSize"
576576
else
577-
dumpFileSize=$(stat -c%s "$DB_DUMP_PATH")
577+
dumpFileSize=$(wc -c "$DB_DUMP_PATH" | awk '{print $1}')
578578
fi
579579
let dumpFileSize=dumpFileSize*$EBS_SIZE_MULTIPLIER
580580
let minSize=300*$KB*$KB*$KB

0 commit comments

Comments
 (0)