From 4d2cc551cf6fa71e425fad8f397e96d69f016a6b Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 29 May 2017 08:40:55 +0200 Subject: [PATCH] package.bash: RHEL: strip brackets We now convert "CentOS release 5.11 (Final)" to "CentOS_release_5.11_Final" https://github.com/rfjakob/gocryptfs/issues/113 --- package.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.bash b/package.bash index 4cb462e..fe01709 100755 --- a/package.bash +++ b/package.bash @@ -12,7 +12,8 @@ if [[ -e /etc/os-release ]]; then source /etc/os-release elif [[ -e /etc/redhat-release ]]; then # RHEL and CentOS - ID=$(cat /etc/redhat-release | tr ' ' '_') + # "CentOS release 5.11 (Final)" -> "CentOS_release_5.11_Final" + ID=$(cat /etc/redhat-release | tr ' ' '_' | tr -d '()') VERSION_ID="" else echo "Could not get distribution version"