From 4d4c0a7f9bf881a2e64416f25802ac25c2b5a376 Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Tue, 25 Jun 2024 17:02:36 +0200 Subject: [PATCH] Unset lists which are not in every PSPBUILD --- make-repo-html.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/make-repo-html.sh b/make-repo-html.sh index fce79d6..b6a3265 100755 --- a/make-repo-html.sh +++ b/make-repo-html.sh @@ -17,6 +17,11 @@ INDEX_TABLE_CONTENT="" # Build the html pages for PSPBUILD in $(find . -name "PSPBUILD" | sort); do + # Make sure optional variables are from current PSPBUILD + unset groups + unset license + unset depends + source "${PSPBUILD}" UPDATED=$(git log -1 --format=%cd --date=short -- "${PSPBUILD}") DOWNLOAD_URL="${pkgname}-${pkgver}-${pkgrel}-${arch}.pkg.tar.gz" @@ -61,4 +66,4 @@ for PSPBUILD in $(find . -name "PSPBUILD" | sort); do done envsubst < index.html > repo/index.html -cp style.css repo/ \ No newline at end of file +cp style.css repo/