This commit is contained in:
Santiago Lo Coco 2022-03-01 12:06:54 -03:00
parent 2cc7d31dbc
commit d4482446de
1 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,9 @@ installAurDeps() {
mapfile -t pkgDeps < <(sed -n -e "s/$regExp/\3/p" .SRCINFO) mapfile -t pkgDeps < <(sed -n -e "s/$regExp/\3/p" .SRCINFO)
for pkgDep in "${pkgDeps[@]}"; do for pkgDep in "${pkgDeps[@]}"; do
pkgName=$(echo "$pkgDep" | sed 's/[><=].*//') 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 if echo "$paruOutput" | grep -q "^aur\/"; then
paru -S --noconfirm "$pkgName" paru -S --noconfirm "$pkgName"
fi fi