Cleanup cleanup_lists in linux.sh

This commit is contained in:
Shivam Mathur 2021-04-19 00:46:18 +05:30
parent 8f96f50dcd
commit 7a90166ec2
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -22,7 +22,6 @@ 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/ 2>/dev/null" exit
fi
}