From ea20ae1fbd5c1646f71c6524531e3754af1ab953 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Fri, 15 Oct 2021 15:56:58 +0530 Subject: [PATCH] Fix minor bug in checking lists on Linux --- src/scripts/tools/ppa.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/tools/ppa.sh b/src/scripts/tools/ppa.sh index 42dabaa8..09975cb6 100644 --- a/src/scripts/tools/ppa.sh +++ b/src/scripts/tools/ppa.sh @@ -101,7 +101,7 @@ check_lists() { ppa=$1 ppa_search=$2 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 update_lists "$ppa" "$ppa_search" fi