cdp1337 / ARKSurvivalAscended-Linux

GNU Affero General Public License v3.0
39 stars 7 forks source link

simplify code to enable repository source #14

Open Oxymoron290 opened 7 months ago

Oxymoron290 commented 7 months ago

You can replace all the code that edits the sources.list to add the necessary non-free and non-free-firmware with two simple lines:

apt-add-repository -s non-free
apt-add-repository -s non-free-firmware

the apt-add-repository is added as part of the software-properties-common installed prior to modifying the sources.list file.

Why all the unnecessary file parsing and checking if the values are already there?