mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-07 13:02:27 +02:00
Delete .DS_Store from Data
If the Data folder is opened in OSX it creates a .DS_Store file and the python script tries to use it a source and returns errors, deleting it solves this issue.
This commit is contained in:
parent
94ea037628
commit
45fa325d42
@ -73,6 +73,9 @@ SOURCES = os.listdir(DATA_PATH)
|
||||
README_TEMPLATE = os.path.join(BASEDIR_PATH, 'readme_template.md')
|
||||
README_FILE = os.path.join(BASEDIR_PATH, 'readme.md')
|
||||
TARGET_HOST = '0.0.0.0'
|
||||
DS_STORE = BASEDIR_PATH + '/data/.DS_Store'
|
||||
if os.path.isfile(DS_STORE):
|
||||
os.remove(DS_STORE)
|
||||
|
||||
# Exclusions
|
||||
EXCLUSION_PATTERN = '([a-zA-Z\d-]+\.){0,}' #append domain the end
|
||||
|
Loading…
Reference in New Issue
Block a user