From 028a40ee8c2ea4d6a772d232c43fbabcc810de59 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 15 Jan 2023 13:25:04 +0100 Subject: [PATCH] Bug Check update in github-tag and release --- plugins/github-release | 4 ++-- plugins/github-tag | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/github-release b/plugins/github-release index 20d968f..863c395 100644 --- a/plugins/github-release +++ b/plugins/github-release @@ -38,7 +38,7 @@ plugin_getlatestversion() { echo "Error in Github API" return 1 fi - local -r PKGVERSION=$(readSetting "${PKGSETTINGS}" "pkgver" "0") + local -r PKGVERSION=$(readSetting "${PKGBUILD}" "pkgver" "0") if [[ "${PKGVERSION}" == "${GITHUBVERSION}" ]]; then readSetting "${PKGSETTINGS}" "version" "0" else @@ -63,7 +63,7 @@ plugin_update() { echo "Error in Github API" return 1 fi - local -r PKGVERSION=$(readSetting "${PKGSETTINGS}" "pkgver" "0") + local -r PKGVERSION=$(readSetting "${PKGBUILD}" "pkgver" "0") if [[ "${PKGVERSION}" == "${GITHUBVERSION}" ]]; then return 0 fi diff --git a/plugins/github-tag b/plugins/github-tag index 5312fac..e12dd54 100644 --- a/plugins/github-tag +++ b/plugins/github-tag @@ -38,7 +38,7 @@ plugin_getlatestversion() { echo "Error in Github API" return 1 fi - local -r PKGVERSION=$(readSetting "${PKGSETTINGS}" "pkgver" "0") + local -r PKGVERSION=$(readSetting "${PKGBUILD}" "pkgver" "0") if [[ "${PKGVERSION}" == "${GITHUBVERSION}" ]]; then readSetting "${PKGSETTINGS}" "version" "0" else @@ -63,7 +63,7 @@ plugin_update() { echo "Error in Github API" return 1 fi - local -r PKGVERSION=$(readSetting "${PKGSETTINGS}" "pkgver" "0") + local -r PKGVERSION=$(readSetting "${PKGBUILD}" "pkgver" "0") if [[ "${PKGVERSION}" == "${GITHUBVERSION}" ]]; then return 0 fi