Skip to content

Commit

Permalink
add suport for Scientific Linux, closes #2685
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Mar 8, 2014
1 parent 1b293d4 commit 98c0a3a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions scripts/functions/requirements/centos
Expand Up @@ -162,3 +162,8 @@ requirements_mageia_before()
{
__lib_type=centos
}

requirements_scientific_before()
{
__lib_type=centos
}
1 change: 1 addition & 0 deletions scripts/functions/requirements/scientific
2 changes: 1 addition & 1 deletion scripts/functions/utility_system
Expand Up @@ -107,7 +107,7 @@ __rvm_detect_system()
[[ -f /etc/redhat-release ]]
then
_system_name="$(
GREP_OPTIONS="" \grep -Eo 'CentOS|ClearOS|Mageia' /etc/redhat-release 2>/dev/null
GREP_OPTIONS="" \grep -Eo 'CentOS|ClearOS|Mageia|Scientific' /etc/redhat-release 2>/dev/null
)" ||
_system_name="RedHat"
_system_version="$(GREP_OPTIONS="" \grep -Eo '[0-9\.]+' /etc/redhat-release | \awk -F. 'NR==1{print $1}')"
Expand Down

0 comments on commit 98c0a3a

Please sign in to comment.