The Free Software Media System - Server Backend & API
Allow selecting web branch and fix Docker sed
Joshua Boniface5251a5ca7956
diff --git a/bump_version b/bump_versionindex 398caee15c..5900208647 100755--- a/bump_version+++ b/bump_version@@ -24,7 +24,11 @@ fishared_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 submodulesgit submodule update --init --recursive@@ -80,7 +84,7 @@ fi# Set the Dockerfile web version to the specified new_versionold_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