Fix version getting mistake with youtubedl

This commit is contained in:
kjeld Schouten-Lebbing
2021-04-17 20:09:06 +02:00
parent 51de617a92
commit 79c62eb94e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
4.2
+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
version=$(curl -sX GET "https://api.github.com/reposTzahi12345/YoutubeDL-Material/releases" | jq --raw-output '.[0].tag_name')
version=$(curl -sX GET "https://api.github.com/repos/Tzahi12345/YoutubeDL-Material/releases" | jq --raw-output '.[0].tag_name')
version="${version#*v}"
version="${version#*release-}"
printf "%s" "${version}"