mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Fix minor bug in checking lists on Linux
This commit is contained in:
parent
383c74bb06
commit
ea20ae1fbd
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user