total=$(echo "$total + $float_size" | bc -l);
echo "$remote = $image_size";
done
+ csize_total=$(echo "$(cut -d ";" -f 2 $1 | grep '^[0-9\.]*' | awk '{printf $1" "}' | sed -s 's/ /+/g')0" | bc -l);
if [ $(echo $total | cut -d "." -f 1) -gt 1024 ]; then
total=$(echo "$total / 1024" | bc -l | cut -c 1-4);
+ csize_total=$(echo "$csize_total / 1024" | bc -l | cut -c 1-4);
size_suffix="GB";
fi
echo "Total: ${total}${size_suffix}";
+ echo "Aprox. container size: ${csize_total}${size_suffix}";
}
get_image_size $filename;