netbox-community / Device-Type-Library-Import

This library is intended to assist with importing device and module types into NetBox from the NetBox Community DeviceType-Library
https://github.com/netbox-community/devicetype-library
MIT License
270 stars 89 forks source link

repo: remove check for '.git' at end of git remote #131

Open EBADBEEF opened 7 months ago

EBADBEEF commented 7 months ago

I can't think of a reason to enforce this. When script is run by default (at least with git version 2.42.0), there is no '.git' at the end of the remote.

Here is what 'git remote -v' shows: origin https://github.com/netbox-community/devicetype-library

After removing the check, we can run the script multiple times in a row without deleting the 'repo' folder.

Fixes issue #129