diff --git a/release.sh b/release.sh index 9f188fe..ad756cd 100755 --- a/release.sh +++ b/release.sh @@ -3,7 +3,7 @@ JPRM="jprm" PLUGIN=Jellyfin.Plugin.SmartPlaylist -VERSION=$(grep -Po '^ *version: * "*\K[^"$]+' "${PLUGIN}/build.yaml") +VERSION=$(sed -n '/^version:/ s/^version: *//p' "${PLUGIN}/build.yaml") ARTIFACT_DIR=artifacts REPO_URL="https://gitea.redxef.at/redxef/jellyfin-smart-playlist/releases/download/v${VERSION}/jellyfin-smart-playlist_${VERSION}.dll"