Human readable size for Google Cloud

This commit is contained in:
Giovanni Pini 2015-05-14 14:19:43 +02:00 committed by Giovanni Pini
parent 01143b6834
commit 2be958e0ec

View file

@ -434,7 +434,7 @@ get_remote_file_size()
FRIENDLY_TYPE_NAME="Google Cloud Storage"
if $GSCMD_AVAIL ; then
TMPDEST=`echo $DEST | sed -e "s/\/*$//" `
SIZE=`gsutil du -s ${TMPDEST} | awk '{print $1}'`
SIZE=`gsutil du -hs ${TMPDEST} | awk '{print $1$2}'`
fi
;;
"s3")