diff options
author | Jon Griffiths <jon_p_griffiths@yahoo.com> | 2016-03-03 00:06:55 +1300 |
---|---|---|
committer | Jon Griffiths <jon_p_griffiths@yahoo.com> | 2016-03-03 00:06:58 +1300 |
commit | 094b6613d164adf5c56bbaf21ccc219c15c10b17 (patch) | |
tree | 3b91e01f1f8e4646ceb8ebd6adb0be76702e173e | |
parent | sshd fixes (diff) | |
download | firejail-094b6613d164adf5c56bbaf21ccc219c15c10b17.tar.gz firejail-094b6613d164adf5c56bbaf21ccc219c15c10b17.tar.zst firejail-094b6613d164adf5c56bbaf21ccc219c15c10b17.zip |
Strip version number suffixes
Suffixes such as -rc1 etc are not allowed by rpm tools.
-rwxr-xr-x | platform/rpm/mkrpm.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/rpm/mkrpm.sh b/platform/rpm/mkrpm.sh index e600c6bdd..3ac4458d0 100755 --- a/platform/rpm/mkrpm.sh +++ b/platform/rpm/mkrpm.sh | |||
@@ -6,7 +6,8 @@ | |||
6 | # current working directory. | 6 | # current working directory. |
7 | 7 | ||
8 | name=$1 | 8 | name=$1 |
9 | version=$2 | 9 | # Strip any trailing prefix from the version like -rc1 etc |
10 | version=$(echo "$2" | sed 's/\-.*//g') | ||
10 | 11 | ||
11 | if [[ ! -f platform/rpm/${name}.spec ]]; then | 12 | if [[ ! -f platform/rpm/${name}.spec ]]; then |
12 | echo error: spec file not found for name \"${name}\" | 13 | echo error: spec file not found for name \"${name}\" |