Skip to content

Commit

Permalink
Merge pull request #15 from ToddMiller1/sles15
Browse files Browse the repository at this point in the history
Newer SUSE uses /etc/os-release
  • Loading branch information
ToddMiller1 authored Sep 22, 2019
2 parents 69ad9fb + 15a0c58 commit 182aa88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pp.back.rpm
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ pp_rpm_detect_distro () {
/^S[uU]SE LINUX Enterprise Server [0-9]/ { print "sles" $5; exit; }
/^SuSE SLES-[0-9]/ { print "sles" substr($2,6); exit; }
' /etc/SuSE-release`
elif test -f /etc/os-release; then
pp_rpm_distro="`. /etc/os-release && echo \$ID\$VERSION`"
elif test -f /etc/pld-release; then
pp_rpm_distro=`awk '
/^[^ ]* PLD Linux/ { print "pld" $1; exit; }
Expand Down

0 comments on commit 182aa88

Please sign in to comment.