Fix minor bug in checking lists on Linux

This commit is contained in:
Shivam Mathur 2021-10-15 15:56:58 +05:30
parent 383c74bb06
commit ea20ae1fbd
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -101,7 +101,7 @@ check_lists() {
ppa=$1 ppa=$1
ppa_search=$2 ppa_search=$2
if grep -Eqr "$ppa_search" "$list_dir"; then if grep -Eqr "$ppa_search" "$list_dir"; then
list_count="$(find /var/lib/apt/lists -name "*${ppa/\//_}*" | wc -l)" list_count="$(sudo find /var/lib/apt/lists -type f -name "*${ppa/\//_}*" | wc -l)"
if [ "$list_count" = "0" ]; then if [ "$list_count" = "0" ]; then
update_lists "$ppa" "$ppa_search" update_lists "$ppa" "$ppa_search"
fi fi