fix(scripts): fix auto-update

This commit is contained in:
MedzikUser 2022-05-22 20:09:50 +02:00
parent ddab02a7be
commit 2e1e0c1bbc
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
1 changed files with 9 additions and 2 deletions

View File

@ -6,6 +6,7 @@
: "${GIT_PUSH_PACKAGES:=false}"
SCRIPT_DIR="$(realpath "$(dirname "$0")")"
SRC_DIR="$(realpath "$(dirname "${SCRIPT_DIR}")")"
source "${SCRIPT_DIR}/lib/parse-conf.sh"
@ -20,6 +21,8 @@ update-package() {
eval "$(parse-conf ${pkgdir})"
cd "${SRC_DIR}"
# check the package updates from AUR
if [ ! -f "${pkgdir}/PKGBUILD" ]
then
@ -106,7 +109,9 @@ update-package() {
# Update package checksums
cd "${pkgdir}"
updpkgsums
chown -R build .
su -c 'updpkgsums' build
cd "${SRC_DIR}"
if [ "${GIT_COMMIT_PACKAGES}" = "true" ]
then
@ -145,7 +150,9 @@ update-package() {
# Update package checksums
cd "${pkgdir}"
updpkgsums
chown -R build .
su -c 'updpkgsums' build
cd "${SRC_DIR}"
if [ "${GIT_COMMIT_PACKAGES}" = "true" ]
then