Closed
Description
Describe the bug
When manually adding an additional url via arduino-cli config add ...
the command does not check for existing matching entries in the list, hence generating multiple entries for the same URL
To Reproduce
Steps to reproduce the behavior:
arduino-cli config add board_manager.additional_urls https://my.url/package_mycustom_index.json
arduino-cli config dump
- verify that our URL is at the end of the
board_manager
group ofadditional_urls
arduino-cli config add board_manager.additional_urls https://my.url/package_mycustom_index.json
arduino-cli config dump
- verify that the URL is twice at the end of the
board_manager
group ofadditional_urls
arduino-cli config remove board_manager.additional_urls https://my.url/package_mycustom_index.json
remove
will remove any istance of said URL
Expected behavior
The command should check for the presence of said URL and not add it if already there
Screenshots
n/a
Desktop (please complete the following information):
- OS: Mac OS
- Version: 11.5.2
Additional context
n/a