File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,13 +97,6 @@ throw_err() {
9797 exit 1
9898}
9999
100- log " File count: $file_count "
101- if [[ " ${skip_count-} " != " true" ]]; then
102- if [[ " $file_count " -lt " $min_count " ]] || [[ " $file_count " -gt " $max_count " ]]; then
103- throw_err " This is a surprising number of files - expected between $min_count and $max_count "
104- fi
105- fi
106-
107100human_size () {
108101 if [[ " $1 " -gt 999999 ]]; then
109102 echo " $( bc <<< " scale=3; $1 / 1000000" ) GB"
@@ -112,7 +105,15 @@ human_size() {
112105 fi
113106}
114107
108+ log " File count: $file_count "
115109log " Total size: $( human_size " $total_size " ) "
110+
111+ if [[ " ${skip_count-} " != " true" ]]; then
112+ if [[ " $file_count " -lt " $min_count " ]] || [[ " $file_count " -gt " $max_count " ]]; then
113+ throw_err " This is a surprising number of files - expected between $min_count and $max_count "
114+ fi
115+ fi
116+
116117if [[ " ${skip_size-} " != " true" ]]; then
117118 # N.B. busybox `du` outputs in kB
118119 # See: https://www.busybox.net/downloads/BusyBox.html#du
You can’t perform that action at this time.
0 commit comments