From b883118db5e67acc6c3bdae4910da84992beddd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Tue, 23 Aug 2016 20:42:29 +0200 Subject: get_size: Use simpler command to extract size --- backuper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backuper.sh b/backuper.sh index 6ef9a8e..684778e 100644 --- a/backuper.sh +++ b/backuper.sh @@ -53,7 +53,7 @@ title() { get_size() { FILE="$1" - du -h "$FILE" | awk '{ print $1 }' + du -h "$FILE" | cut -f1 } time_fmt() { -- cgit v1.2.3