mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
Strip version number suffixes
Suffixes such as -rc1 etc are not allowed by rpm tools.
This commit is contained in:
parent
dd03698218
commit
094b6613d1
1 changed files with 2 additions and 1 deletions
|
|
@ -6,7 +6,8 @@
|
|||
# current working directory.
|
||||
|
||||
name=$1
|
||||
version=$2
|
||||
# Strip any trailing prefix from the version like -rc1 etc
|
||||
version=$(echo "$2" | sed 's/\-.*//g')
|
||||
|
||||
if [[ ! -f platform/rpm/${name}.spec ]]; then
|
||||
echo error: spec file not found for name \"${name}\"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue