mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
update_retroplayer-addons: match lastest tag with kodi branch in name
If no tag with the kodi branch name can be found, fall back to the latest tag in the branch. This fixes ambiguity if both a -Leia and a -Matrix tag point to the same githash. Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
@@ -61,8 +61,16 @@ resolve_hash_in_branch() {
|
||||
}
|
||||
|
||||
resolve_tag_in_branch() {
|
||||
local tag
|
||||
if [ -d "$1" ] ; then
|
||||
cd "$1"
|
||||
if [ $# -eq 3 ] ; then
|
||||
tag=$(git describe --abbrev=0 --tags --match "$3" origin/$2 2>/dev/null)
|
||||
if [ -n "$tag" ] ; then
|
||||
echo "$tag"
|
||||
return
|
||||
fi
|
||||
fi
|
||||
git describe --abbrev=0 --tags origin/$2 2>/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user