From 2cc7d31dbc8b6afbfb2b4bf5e517bad1d4bec91c Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 1 Mar 2022 11:53:23 -0300 Subject: [PATCH] Fix typos --- pkgbuild.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgbuild.sh b/pkgbuild.sh index 77eca8a..356185b 100755 --- a/pkgbuild.sh +++ b/pkgbuild.sh @@ -16,9 +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 "${pkgDep}" | grep "\/${pkgDep} ") - if echo $paruOutput | grep -q "^aur\/" - paru -S --noconfirm "$pkgDep" + paruOutput=$(paru -Ss "${pkgName}" | grep "\/${pkgName} ") + if echo "$paruOutput" | grep -q "^aur\/"; then + paru -S --noconfirm "$pkgName" fi done rm -rf paru-bin .SRCINFO