addpkg: clion

This commit is contained in:
MedzikUser 2022-05-20 22:11:17 +02:00
parent 1485965e90
commit d0f5d5a72b
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1,2 @@
AUR_NAME="clion"
AUR_UPDATED="1652463738"

View File

@ -72,7 +72,7 @@ update-package() {
local latest_version="$(curl --silent --location -H "Authorization: token ${GITHUB_API_TOKEN}" "https://api.github.com/repos/${GITHUB_REPO}/releases/latest" | jq -r ".tag_name")"
fi
if [ -z "${latest_version}" ]
if [[ -z "${latest_version}" || "${latest_version}" = "null" ]]
then
echo "[!] Failed to get latest version of ${pkgname}"
return 1