runone: .filesize: +sanity check
[massrebuild.git] / runone
diff --git a/runone b/runone
index adb82b2..71a49f0 100755 (executable)
--- a/runone
+++ b/runone
@@ -79,6 +79,7 @@ for pkg in "$@";do
     for i in $resultdir/*-debuginfo*.rpm;do
       if [ -e "$i" ];then
        sizethis="$(rpm -q --qf '%{size}' -p $i)"
+       [[ "$sizethis" =~ ^[0-9]+$ ]]
        size=$[$size+$sizethis]
       fi
     done