5 lines
No EOL
232 B
Bash
5 lines
No EOL
232 B
Bash
#!/usr/bin/env bash
|
|
version=$(curl -sX GET "https://api.github.com/repos/home-assistant/core/releases/latest" | jq --raw-output '.tag_name' 2>/dev/null)
|
|
version="${version#*v}"
|
|
version="${version#*release-}"
|
|
printf "%s" "${version}" |