]> arthur.barton.de Git - backup-script.git/commitdiff
backup-status: Correctly get size of directories pointed to by symlinks
authorAlexander Barton <alex@barton.de>
Wed, 29 Jul 2015 10:38:29 +0000 (12:38 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 29 Jul 2015 10:38:29 +0000 (12:38 +0200)
bin/backup-status

index 44725f93e53a4d671408fffd37805d5f1ce0044c..c81a4d1f430b87baaecd42688790e058bba09e1a 100755 (executable)
@@ -34,7 +34,7 @@ Check_Size() {
        # $2: padding
 
        if [ "$QUICK" = "0" ]; then
-               size=`du -sh "$1" | cut -f1`
+               size=`du -Hhs "$1" | cut -f1`
                echo "$2  - Size:" $size
        fi
 }