aboutsummaryrefslogtreecommitdiff
path: root/bump_version
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2019-09-02 20:03:31 -0400
committerGitHub <noreply@github.com>2019-09-02 20:03:31 -0400
commit2aecc3fa1bdf067e6b5913c72c539b21aeefdc63 (patch)
tree902c235681d82fdc0a08128e710c2d91f689e730 /bump_version
parente2577ea1c703b3030736485c26fe3cd2b0802ad9 (diff)
parent742102b5416a42ee6c9496f98758db553a6e27d0 (diff)
Merge pull request #1699 from joshuaboniface/bump-version
Bump version to 10.4.0
Diffstat (limited to 'bump_version')
-rwxr-xr-xbump_version8
1 files changed, 6 insertions, 2 deletions
diff --git a/bump_version b/bump_version
index 398caee15c..5900208647 100755
--- a/bump_version
+++ b/bump_version
@@ -24,7 +24,11 @@ fi
shared_version_file="./SharedVersion.cs"
build_file="./build.yaml"
-web_branch="$( git branch 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' )"
+if [[ -z $2 ]]; then
+ web_branch="$( git branch 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' )"
+else
+ web_branch="$2"
+fi
# Initialize submodules
git submodule update --init --recursive
@@ -80,7 +84,7 @@ fi
# Set the Dockerfile web version to the specified new_version
old_version="$(
grep "JELLYFIN_WEB_VERSION=" Dockerfile \
- | sed -E 's/ARG JELLYFIN_WEB_VERSION=([0-9\.]+[-a-z0-9]*)/\1/'
+ | sed -E 's/ARG JELLYFIN_WEB_VERSION=v([0-9\.]+[-a-z0-9]*)/\1/'
)"
echo $old_version