#!/bin/bash appdata="net.retrodeck.retrodeck.appdata.xml" manifest="net.retrodeck.retrodeck.yml" manifest_content=$(cat "$manifest") fetch_repo_version(){ # Getting latest RetroDECK release info LATEST_RELEASE=$(curl -s "https://api.github.com/repos/XargonWan/RetroDECK/releases/latest") # Extracting tag name from the latest release repo_version=$(echo "$LATEST_RELEASE" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') # Printing results echo "$repo_version" } fetch_appdata_version(){ # Extract the version from the net.retrodeck.retrodeck.appdata.xml file appdata_version=$(grep -oPm1 "(?<=