update rpm versioning

Former-commit-id: 07ba64c200176370acad1b4c8be4193e98afa204
This commit is contained in:
Ben Schermel 2020-05-28 01:35:42 -04:00 committed by John Sully
parent 5ebad6291f
commit 628a9d5cd1

View File

@ -5,7 +5,7 @@
version=$1
release=$2
arch=$(uname -m)
dist=el$(rpm -q --queryformat '%{VERSION}' centos-release)
dist=el$(rpm -q --queryformat '%{VERSION}' centos-release | cut -d. -f1)
if [ "$arch" != "aarch64" ] || [ "$arch" != "x86_64" ]; then
echo "This script is only valid and tested for aarch64 and x86_64 architectures. You are trying to use: $arch"