Skip to content

Commit

Permalink
Fix DIST_VERSION CentOS 8
Browse files Browse the repository at this point in the history
  • Loading branch information
igsu committed Dec 8, 2020
1 parent d86fe3e commit e14f7c6
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion rpm/setup
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_0.10
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_0.12
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_10.x
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_11.x
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_12.x
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_13.x
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_14.x
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_15.x
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_4.x
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_5.x
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_6.x
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_7.x
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_8.x
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_9.x
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_current.x
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_iojs_1.x
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_iojs_2.x
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_iojs_3.x
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/setup_lts.x
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down
2 changes: 1 addition & 1 deletion rpm/src/_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ else

## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
## extract the major version number of the distro
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')

if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then

Expand Down

0 comments on commit e14f7c6

Please sign in to comment.