This commit is contained in:
MatMoul 2023-01-14 16:25:05 +01:00
parent 99d4b8c732
commit 8740df3263
2 changed files with 1 additions and 2 deletions

View File

@ -143,7 +143,7 @@ pkgBuild() { # $1=PKGNAME
# shellcheck disable=SC2034 # Variable for plugin # shellcheck disable=SC2034 # Variable for plugin
local -r PKGBUILD="${PKGDIR}/${PKGNAME}/files/PKGBUILD" local -r PKGBUILD="${PKGDIR}/${PKGNAME}/files/PKGBUILD"
. "${PLUGINFILE}" . "${PLUGINFILE}"
local -r PKGFILES="${PKGDIR}/${PKGNAME}/files" local PKGFILES="${PKGDIR}/${PKGNAME}/files"
if ! PKGFILES=$(plugin_getpkgfiles "${PKGDIR}" "${PKGNAME}"); then if ! PKGFILES=$(plugin_getpkgfiles "${PKGDIR}" "${PKGNAME}"); then
if [[ "${DRYRUN}" == "0" ]]; then if [[ "${DRYRUN}" == "0" ]]; then
writeSetting "${PKGDIR}"/"${PKGNAME}"/settings "lastbuildstatus" "Error - No PKG files provided" writeSetting "${PKGDIR}"/"${PKGNAME}"/settings "lastbuildstatus" "Error - No PKG files provided"

View File

@ -68,7 +68,6 @@ plugin_update() {
writeSetting "${PKGBUILD}" "pkgname" "${PKGNAME}" writeSetting "${PKGBUILD}" "pkgname" "${PKGNAME}"
writeSetting "${PKGBUILD}" "pkgrel" "1" writeSetting "${PKGBUILD}" "pkgrel" "1"
local -r PKGVERSION=$(readSetting "${PKGSETTINGS}" "pkgver" "0") local -r PKGVERSION=$(readSetting "${PKGSETTINGS}" "pkgver" "0")
local -r PKGREVISION=$(readSetting "${PKGSETTINGS}" "pkgrev" "0")
local -r PKGNEWREVISION=$((PKGREVISION + 1)) local -r PKGNEWREVISION=$((PKGREVISION + 1))
writeSetting "${PKGBUILD}" "pkgver" "${PKGVERSION}.r${PKGNEWREVISION}.${ONLINECOMMIT:0:7}" writeSetting "${PKGBUILD}" "pkgver" "${PKGVERSION}.r${PKGNEWREVISION}.${ONLINECOMMIT:0:7}"
} }