Skip to content

Commit 07ba64c

Browse files
benschermelJohnSully
authored andcommitted
update rpm versioning
1 parent b4b35cf commit 07ba64c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/rpm/generate_rpms.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
version=$1
66
release=$2
77
arch=$(uname -m)
8-
dist=el$(rpm -q --queryformat '%{VERSION}' centos-release)
8+
dist=el$(rpm -q --queryformat '%{VERSION}' centos-release | cut -d. -f1)
99

1010
if [ "$arch" != "aarch64" ] || [ "$arch" != "x86_64" ]; then
1111
echo "This script is only valid and tested for aarch64 and x86_64 architectures. You are trying to use: $arch"

0 commit comments

Comments
 (0)