diff --git a/generate-instances-json.sh b/generate-instances-json.sh index 74ce6c5..0a1e95e 100755 --- a/generate-instances-json.sh +++ b/generate-instances-json.sh @@ -477,7 +477,7 @@ create_instance_entry () # # Future versions of Libreddit may advertise the version in a tag in #
, but it doesn't right now. - version="$(<<<"${res}" sed -nE 's/.*(v([0-9]+\.){2}[0-9]+).*$/\1/p')" + version="$(<<<"${res}" sed -nE 's/.*\s+id="version">(v([0-9]+\.){2}[0-9]+).*$/\1/p')" if [[ -z "${version}" ]] then return 4