From 99421564ecc09d6188acbc09a22e1e7278f23c98 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 1 Mar 2022 12:08:21 -0300 Subject: [PATCH] Update variable name --- pkgbuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgbuild.sh b/pkgbuild.sh index 2262123..5206de9 100755 --- a/pkgbuild.sh +++ b/pkgbuild.sh @@ -17,9 +17,9 @@ installAurDeps() { for pkgDep in "${pkgDeps[@]}"; do pkgName=$(echo "$pkgDep" | sed 's/[><=].*//') set +e - paruOutput=$(paru -Ss "${pkgName}" 2> /dev/null | grep "\/${pkgName} ") + pkgInfo=$(paru -Ss "${pkgName}" 2> /dev/null | grep "\/${pkgName} ") set -e - if echo "$paruOutput" | grep -q "^aur\/"; then + if echo "$pkgInfo" | grep -q "^aur\/"; then paru -S --noconfirm "$pkgName" fi done