From 9202ab58967e04eccd96061f87a06babf67f8b91 Mon Sep 17 00:00:00 2001 From: nyyu Date: Fri, 4 Jun 2021 08:35:25 +0200 Subject: [PATCH] Fix multiple package PKGBUILD --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 315bd7b..dd4b55e 100755 --- a/build.sh +++ b/build.sh @@ -5,7 +5,7 @@ build() { makepkg --nodeps --nobuild --skippgpcheck --noconfirm fi makepkg --printsrcinfo > .SRCINFO - name=$(grep 'pkgname' .SRCINFO | cut -d'=' -f2 | tr -d ' ') + name=$(grep -m1 'pkgname' .SRCINFO | cut -d'=' -f2 | tr -d ' ') ver=$(grep 'pkgver' .SRCINFO | cut -d'=' -f2 | tr -d ' ') rel=$(grep 'pkgrel' .SRCINFO | cut -d'=' -f2 | tr -d ' ') epoch=$(grep 'epoch' .SRCINFO | cut -d'=' -f2 | tr -d ' ')