Skip to content

Commit

Permalink
Remove unused helper functions from agent/base
Browse files Browse the repository at this point in the history
Rather than verify that these functions work as expected in all environments,
we just remove them, since they are not currently used.

PBENCH-306
  • Loading branch information
webbnh authored and portante committed Nov 23, 2022
1 parent 7a218d7 commit 9e5c67a
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions agent/base
Original file line number Diff line number Diff line change
Expand Up @@ -162,24 +162,6 @@ if [[ "${PBENCH_RPM_REQUIREMENT_MODE}" != "strict" && "${PBENCH_RPM_REQUIREMENT_
exit 1
fi

#+
# Helper functions
#-

function is_redhat() {
grep -q 'Red Hat' /etc/redhat-release
return $?
}

function is_fedora() {
grep -q 'Fedora' /etc/redhat-release
return $?
}

function get_redhat_version() {
cat /etc/redhat-release | awk '{ print $7 }'
}

# Constants
tools_group_prefix="tools-v1-"

Expand Down

0 comments on commit 9e5c67a

Please sign in to comment.