summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-05-29 08:40:55 +0200
committerJakob Unterwurzacher2017-05-29 08:42:01 +0200
commit4d2cc551cf6fa71e425fad8f397e96d69f016a6b (patch)
treecbb378c28f3c97d164b7de3251dd8c201dd52846
parentd59e7da6a6ee9883d61958ccd3ed3acb7c6ba8dc (diff)
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
-rwxr-xr-xpackage.bash3
1 files changed, 2 insertions, 1 deletions
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"