From d4482446de67b7a3bb643246dc2b589ddc0ea937 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 1 Mar 2022 12:06:54 -0300 Subject: [PATCH] Fix bugs --- pkgbuild.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgbuild.sh b/pkgbuild.sh index 356185b..2262123 100755 --- a/pkgbuild.sh +++ b/pkgbuild.sh @@ -16,7 +16,9 @@ installAurDeps() { mapfile -t pkgDeps < <(sed -n -e "s/$regExp/\3/p" .SRCINFO) for pkgDep in "${pkgDeps[@]}"; do pkgName=$(echo "$pkgDep" | sed 's/[><=].*//') - paruOutput=$(paru -Ss "${pkgName}" | grep "\/${pkgName} ") + set +e + paruOutput=$(paru -Ss "${pkgName}" 2> /dev/null | grep "\/${pkgName} ") + set -e if echo "$paruOutput" | grep -q "^aur\/"; then paru -S --noconfirm "$pkgName" fi