Skip to content

Commit

Permalink
Merge pull request #27 from Oats87/rhel-support-no-redirection
Browse files Browse the repository at this point in the history
Correct redirection error
  • Loading branch information
Oats87 authored Jul 24, 2020
2 parents 53cdd1a + 1291483 commit d7e8b91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iptables-detect/iptables-detect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ os_detect() {

oracleserver)
dist_version="$(. /etc/os-release && echo "$VERSION_ID")"
maj_ver=$(sed -E -e "s/^([0-9]+)\.?[0-9]*$/\1/" <<<$dist_version)
maj_ver=$(echo $dist_version | sed -E -e "s/^([0-9]+)\.?[0-9]*$/\1/")
if [ "$maj_ver" -ge 8 ]; then
detected_via=os
mode=nft
Expand All @@ -195,7 +195,7 @@ os_detect() {

centos | redhat)
dist_version="$(. /etc/os-release && echo "$VERSION_ID")"
maj_ver=$(sed -E -e "s/^([0-9]+)\.?[0-9]*$/\1/" <<<$dist_version)
maj_ver=$(echo $dist_version | sed -E -e "s/^([0-9]+)\.?[0-9]*$/\1/")
if [ "$maj_ver" -ge 8 ]; then
detected_via=os
mode=nft
Expand Down

0 comments on commit d7e8b91

Please sign in to comment.