Fix cleanup_lists in linux.sh for old PHP

This commit is contained in:
Shivam Mathur 2020-08-28 11:31:25 +05:30
parent 83019fade2
commit e3286d1234
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -41,6 +41,7 @@ cleanup_lists() {
sudo mv /etc/apt/sources.list.d /etc/apt/sources.list.d.save
sudo mkdir /etc/apt/sources.list.d
sudo mv /etc/apt/sources.list.d.save/*ondrej*.list /etc/apt/sources.list.d/
sudo mv /etc/apt/sources.list.d.save/*dotdeb*.list /etc/apt/sources.list.d/ 2>/dev/null || true
trap "sudo mv /etc/apt/sources.list.d.save/*.list /etc/apt/sources.list.d/" exit
fi
}