[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tyndur-devel] [PATCH] fixed mklptrepo.sh
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