AaronV77 / Monday

Scripts that create aliases in order to be able to push and pull from a central storage server that you can have at home.
GNU General Public License v2.0
0 stars 0 forks source link

Setup - Clean config file #44

Closed AaronV77 closed 5 years ago

AaronV77 commented 5 years ago

In the setup script I don’t really have a way when ran more than once to remove the previous inserted lines in the config file. The script will just keep adding them, but have to be careful because people could have these in their own config file previously to using the package.

AaronV77 commented 5 years ago

Fixed the issue with a search command in the .ssh/config file to see if the lines are in the config file. If the number of occurrences is not zero then don't add the line to the file.