mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 11:26:48 -05: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
|
fi
|
||||||
|
|
||||||
# Apply common rules to all outputs:
|
# Apply common rules to all outputs:
|
||||||
# 1. Replace "rc-" with "rc"
|
# - Remove "-" at the end
|
||||||
# 2. Replace "beta-" with "beta"
|
# - Replace "rc-" with "rc"
|
||||||
# 3. Replace all remaining dashes with "."
|
# - Replace "beta-" with "beta"
|
||||||
VERSION=$(echo "$VERSION" | sed 's/rc-/rc/g; s/beta-/beta/g; s/-/./g')
|
# - Replace all remaining dashes with "."
|
||||||
|
VERSION=$(echo "$VERSION" | sed 's/-$//; s/rc-/rc/g; s/beta-/beta/g; s/-/./g')
|
||||||
|
|
||||||
printf '%s' "$VERSION"
|
printf '%s' "$VERSION"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue