diff --git a/homebrew_check_latest_release.sh b/homebrew_check_latest_release.sh index bd7b171..9028527 100755 --- a/homebrew_check_latest_release.sh +++ b/homebrew_check_latest_release.sh @@ -19,18 +19,20 @@ else echo "SPECFILE: ${SPECFILE}" fi +LATEST="$(get_latest_release "https://api.github.com/repos/kanidm/kanidm/releases")" + # grab the update url from the spec file -URL=$(grep -E homepage "${SPECFILE}" | awk '{print $NF}' | tr -d '"') -if [ -z "${URL}" ]; then - echo "Failed to find check URL, bailing!" - exit 1 -else - echo "Check URL: ${URL}" -fi +# URL=$(grep -E homepage "${SPECFILE}" | awk '{print $NF}' | tr -d '"') +# if [ -z "${URL}" ]; then +# echo "Failed to find check URL, bailing!" +# exit 1 +# else +# echo "Check URL: ${URL}" +# fi # pull the latest version -LATEST="$(curl -sL "${URL}" | jq -r '.tag_name')" +# LATEST="$(curl -sL "${URL}" | jq -r '.tag_name')" if [ -z "${LATEST}" ]; then echo "Failed to find latest version, bailing!" exit 1 @@ -74,8 +76,8 @@ fi echo "Updating file" # updates the file -sed -i'' -E "s/version \\\".*/version \"${LATEST}\"/g" "${SPECFILE}" -sed -i'' -E "s/sha256 \\\".*/sha256 \"${FILEHASH}\"/g" "${SPECFILE}" +sed -i '' -E "s/version \\\".*/version \"${LATEST}\"/g" "${SPECFILE}" +sed -i '' -E "s/sha256 \\\".*/sha256 \"${FILEHASH}\"/g" "${SPECFILE}" DIFF_LINES="$(git diff | wc -l)" if [ "${DIFF_LINES}" -ne 0 ]; then diff --git a/kanidm.rb b/kanidm.rb index ad0448e..cbf3f02 100644 --- a/kanidm.rb +++ b/kanidm.rb @@ -1,9 +1,9 @@ class Kanidm < Formula desc "Kanidm CLI" - version "v1.1.0-beta.13" + version "v1.1.0-rc.15" homepage "https://api.github.com/kanidm/kanidm/releases/latest" url "https://github.com/kanidm/kanidm/archive/refs/tags/#{version}.tar.gz" - sha256 "e378ab384cc9bc88e554f7ce7002cc23c7cbac419ea7796f74b67a6e4542b0da" + sha256 "b123771e1b06769ff8032a4c38fac3ca5c02a28a42c15216ddf50792ca879ba2" license "Mozilla Public License 2.0" head "https://github.com/kanidm/kanidm.git", branch: "master"