From littlefox at fsfe.org Wed Mar 2 20:01:44 2016 From: littlefox at fsfe.org (Moritz "LittleFox" Grosch) Date: Wed, 2 Mar 2016 20:01:44 +0100 Subject: [tyndur-devel] [PATCH] fixed mklptrepo.sh Message-ID: <1456945304-15605-1-git-send-email-littlefox@fsfe.org> Derefencing links when stat-ing the size is always a good idea --- scripts/mklptrepo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mklptrepo.sh b/scripts/mklptrepo.sh index 29d1b6e..0659afd 100755 --- a/scripts/mklptrepo.sh +++ b/scripts/mklptrepo.sh @@ -19,7 +19,7 @@ cd $lptrepo/ for i in *.tar; do - SIZE=$(stat -c%s "$i") + SIZE=$(stat -Lc%s "$i") if [[ "$i" =~ ^(.*)-lib-([^-]*)-i386\.tar$ ]]; then is_lib=1 -- 2.1.4