From 41734d3cb2cc5a715f203e29f92eb3ea26ab0e1d Mon Sep 17 00:00:00 2001 From: MatMoul Date: Wed, 6 Mar 2024 23:24:23 +0100 Subject: [PATCH] Handle new debug file --- bin/pkgbuilder | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/pkgbuilder b/bin/pkgbuilder index 8bec1ba..61323af 100755 --- a/bin/pkgbuilder +++ b/bin/pkgbuilder @@ -200,7 +200,8 @@ pkgBuild() { # $1=PKGNAME return 1 fi local PKGFILENAME="" - PKGFILENAME=$(ls "${WORKDIR}"/.output/"${PKGNAME}"*.pkg.tar.zst) + # shellcheck disable=SC2012 + PKGFILENAME=$(ls "${WORKDIR}"/.output/"${PKGNAME}"*.pkg.tar.zst | head -n 1) local VERSION="" VERSION=$(pacman -Qp "${PKGFILENAME}" | awk -F ' ' '{print $2}') if [[ "${DRYRUN}" == "0" ]]; then