This commit is contained in:
MatMoul 2023-01-14 16:53:48 +01:00
parent 7262c8f41e
commit f1261acd59

View File

@ -204,16 +204,8 @@ pkgBuild() { # $1=PKGNAME
writeSetting "${PKGDIR}"/"${PKGNAME}"/settings "lastbuildstatus" "Ok" writeSetting "${PKGDIR}"/"${PKGNAME}"/settings "lastbuildstatus" "Ok"
fi fi
local -r PKGTARGET=$(readSetting "${PKGDIR}"/"${PKGNAME}"/settings "target" "") local -r PKGTARGET=$(readSetting "${PKGDIR}"/"${PKGNAME}"/settings "target" "")
if [[ "${DRYRUN}" == "0" ]]; then
if [[ "${NOPUSH}" == "0" ]]; then
if [ ! -d "${VARDIR}"/packages/"${PKGTARGET}" ]; then
mkdir -p "${VARDIR}"/packages/"${PKGTARGET}"
fi
cp "${PKGFILENAME}" "${VARDIR}"/packages/"${PKGTARGET}"
fi
fi
pkgPush "${PKGNAME}" "${PKGFILENAME}" pkgPush "${PKGNAME}" "${PKGFILENAME}"
rm -r "${WORKDIR}"/.output rm "${WORKDIR}"/.output/"${PKGNAME}"*.pkg.tar.zst
} }
pkgPush() { # $1=PKGNAME $2=PKGFILE pkgPush() { # $1=PKGNAME $2=PKGFILE
local -r PKGNAME=${1} local -r PKGNAME=${1}