mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-25 18:40:19 -04:00
New autover for GitHub action compatibility
This commit is contained in:
parent
e48cdacce5
commit
43cd91f1d3
1 changed files with 5 additions and 4 deletions
|
|
@ -22,9 +22,10 @@ if [ -z "$VERSION" ]; then
|
|||
fi
|
||||
|
||||
# Apply common rules to all outputs:
|
||||
# 1. Replace "rc-" with "rc"
|
||||
# 2. Replace "beta-" with "beta"
|
||||
# 3. Replace all remaining dashes with "."
|
||||
VERSION=$(echo "$VERSION" | sed 's/rc-/rc/g; s/beta-/beta/g; s/-/./g')
|
||||
# - Remove "-" at the end
|
||||
# - Replace "rc-" with "rc"
|
||||
# - Replace "beta-" with "beta"
|
||||
# - Replace all remaining dashes with "."
|
||||
VERSION=$(echo "$VERSION" | sed 's/-$//; s/rc-/rc/g; s/beta-/beta/g; s/-/./g')
|
||||
|
||||
printf '%s' "$VERSION"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue