Update variable name

This commit is contained in:
Santiago Lo Coco 2022-03-01 12:08:21 -03:00
parent d4482446de
commit 99421564ec
1 changed files with 2 additions and 2 deletions

View File

@ -17,9 +17,9 @@ installAurDeps() {
for pkgDep in "${pkgDeps[@]}"; do for pkgDep in "${pkgDeps[@]}"; do
pkgName=$(echo "$pkgDep" | sed 's/[><=].*//') pkgName=$(echo "$pkgDep" | sed 's/[><=].*//')
set +e set +e
paruOutput=$(paru -Ss "${pkgName}" 2> /dev/null | grep "\/${pkgName} ") pkgInfo=$(paru -Ss "${pkgName}" 2> /dev/null | grep "\/${pkgName} ")
set -e set -e
if echo "$paruOutput" | grep -q "^aur\/"; then if echo "$pkgInfo" | grep -q "^aur\/"; then
paru -S --noconfirm "$pkgName" paru -S --noconfirm "$pkgName"
fi fi
done done