Skip to content

Commit

Permalink
Fixed Red Hat script
Browse files Browse the repository at this point in the history
  • Loading branch information
lelegard committed Feb 8, 2021
1 parent f6c1727 commit 207e672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-dektec-dkms
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ if $UNINSTALL; then
fi

# Determine operating system type and version.
FC_DISTRO=$(grep " release " /etc/fedora-release 2>/dev/null | sed -e 's/^.* release \([0-9\.]*\) .*$/\1/')
RH_DISTRO=$(grep " release " /etc/redhat-release 2>/dev/null | sed -e 's/^.* release \([0-9\.]*\) .*$/\1/')
FC_DISTRO=$(grep " release [0-9]" /etc/fedora-release 2>/dev/null | sed -e 's/^.* release \([0-9]*\).*$/\1/')
RH_DISTRO=$(grep " release [0-9]" /etc/redhat-release 2>/dev/null | sed -e 's/^.* release \([0-9]*\).*$/\1/')
UB_DISTRO=$([[ -f /etc/lsb-release ]] && source /etc/lsb-release 2>/dev/null && [[ "`tr A-Z a-z <<<$DISTRIB_ID`" = ubuntu ]] && echo $DISTRIB_RELEASE)
DB_DISTRO=$(head -1 /etc/debian_version 2>/dev/null | sed -e 's/ //g')
DISTRO_PREFIX=
Expand Down

0 comments on commit 207e672

Please sign in to comment.