Skip to content

Commit c8d65be

Browse files
committed
Fix duplicate lists [skip ci]
1 parent f37dafe commit c8d65be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ fix_packages() {
3131
}
3232

3333
fix_list() {
34+
ppa_list="/etc/apt/sources.list.d/ondrej-ubuntu-php-$VERSION_CODENAME"
35+
[[ -e "$ppa_list.sources" && -e "$ppa_list.list" ]] && sudo rm "$ppa_list.sources"
3436
if [ "$builds" = "debug" ]; then
3537
list=/etc/apt/sources.list.d/"$(basename "$(grep -lr "ondrej/php" /etc/apt/sources.list.d)")"
3638
sudo apt-get update -o Dir::Etc::sourcelist="$list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"

0 commit comments

Comments
 (0)