Skip to content

Commit

Permalink
[upload.py] also don't upload Emacs spam
Browse files Browse the repository at this point in the history
  • Loading branch information
enterprisey committed May 4, 2015
1 parent bf5232b commit d6f9f30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ def uploadSubscript(scriptName, content):
def uploadDirectory(directory):
files = os.listdir(directory)
for script in files:
# Skip hidden files
if not script.startswith('.'):
# Skip hidden files and Emacs spam
if not script.startswith('.') and not script.endswith('~'):
with open(directory + '/' + script, 'r') as f:
content = f.read()
uploadSubscript(os.path.splitext(script)[0], content)
Expand Down

0 comments on commit d6f9f30

Please sign in to comment.