Skip to content

Commit 07faedf

Browse files
author
Anton Kex, Tanel Õigeäär
committed
do not overwrite files from git
1 parent 512a20f commit 07faedf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoupdate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ def _check_for_updates(self):
1818
self.indicator.restart()
1919

2020
def run(self):
21+
if (os.path.exists(".git")):
22+
return
2123
while True:
2224
try:
2325
self._check_for_updates()
2426
time.sleep(60*5)
2527
except Exception as e:
2628
print 'Failed to update: %s' % e
2729
time.sleep(60*60)
28-
29-

0 commit comments

Comments
 (0)