Delete .DS_Store from Data
authorFrancoGag <redacted>
Wed, 4 Nov 2015 14:47:55 +0000 (11:47 -0300)
committerFrancoGag <redacted>
Wed, 4 Nov 2015 14:47:55 +0000 (11:47 -0300)
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.

updateHostsFile.py

index c73113e3a8a024231288e0b7cdb7065fa3bc7916..b0a5df0d69bdfd6c6560ff38c85829081ed6cfcd 100755 (executable)
@@ -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
git clone https://git.99rst.org/PROJECT