|
|
@ -171,10 +171,20 @@ if ! git diff-index --quiet HEAD --; then
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
git fetch --all
|
|
|
|
git fetch --all
|
|
|
|
git checkout origin/${web_branch} || {
|
|
|
|
# If this is an official branch name, fetch it from origin
|
|
|
|
echo "ERROR: 'jellyfin-web' branch ${web_branch} is invalid."
|
|
|
|
official_branches_regex="^master$|^dev$|^release-.*$|^hotfix-.*$"
|
|
|
|
exit 1
|
|
|
|
if [[ ${web_branch} =~ ${official_branches_regex} ]]; then
|
|
|
|
}
|
|
|
|
git checkout origin/${web_branch} || {
|
|
|
|
|
|
|
|
echo "ERROR: 'jellyfin-web' branch 'origin/${web_branch}' is invalid."
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
# Otherwise, just check out the local branch (for testing, etc.)
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
git checkout ${web_branch} || {
|
|
|
|
|
|
|
|
echo "ERROR: 'jellyfin-web' branch '${web_branch}' is invalid."
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
fi
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
# Execute each platform and action in order, if said action is enabled
|
|
|
|
# Execute each platform and action in order, if said action is enabled
|
|
|
|