Update variable name
This commit is contained in:
parent
d4482446de
commit
99421564ec
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue