diff options
Diffstat (limited to 'repoman')
-rwxr-xr-x | repoman/bin/checkrepo | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/repoman/bin/checkrepo b/repoman/bin/checkrepo index 822ae20a..b38a689b 100755 --- a/repoman/bin/checkrepo +++ b/repoman/bin/checkrepo @@ -39,6 +39,8 @@ function addToJson() { OUNAME="${IMAGENAME%/*}" IMAGENAME="${IMAGENAME##*/}" fi + # Data size must be numeric (in KB). + [[ $DATASIZE =~ ^[0-9]*$ ]] || DATASIZE=0 # JSON-formatted new entry. JSON=$(cat << EOT | jq . { @@ -48,7 +50,7 @@ function addToJson() { "clonator":"${CLONATOR,,}", "compressor":"${COMPRESSOR,,}", "filesystem":"${FSTYPE^^}", - "datasize":${DATASIZE:-0} + "datasize":$[ DATASIZE * 1024] } EOT ) |