From: Jan Kratochvil Date: Sun, 19 Jul 2020 13:41:19 +0000 (+0200) Subject: runone: .filesize: +sanity check X-Git-Url: https://git.jankratochvil.net/?p=massrebuild.git;a=commitdiff_plain;h=4e677ed836190dbaf3c832f29f5a95ba2d9ea64f runone: .filesize: +sanity check --- diff --git a/runone b/runone index adb82b2..71a49f0 100755 --- 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