From 2be958e0ec1002573955fd692531cfbe864a2b23 Mon Sep 17 00:00:00 2001 From: Giovanni Pini Date: Thu, 14 May 2015 14:19:43 +0200 Subject: [PATCH] Human readable size for Google Cloud --- duplicity-backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/duplicity-backup.sh b/duplicity-backup.sh index be29261..bdb23eb 100755 --- a/duplicity-backup.sh +++ b/duplicity-backup.sh @@ -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")